1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
// automatically generated by stateify.
package pipe
import (
"gvisor.dev/gvisor/pkg/state"
)
func (x *inodeOperations) beforeSave() {}
func (x *inodeOperations) save(m state.Map) {
x.beforeSave()
m.Save("InodeSimpleAttributes", &x.InodeSimpleAttributes)
m.Save("p", &x.p)
}
func (x *inodeOperations) afterLoad() {}
func (x *inodeOperations) load(m state.Map) {
m.Load("InodeSimpleAttributes", &x.InodeSimpleAttributes)
m.Load("p", &x.p)
}
func (x *Pipe) beforeSave() {}
func (x *Pipe) save(m state.Map) {
x.beforeSave()
m.Save("isNamed", &x.isNamed)
m.Save("atomicIOBytes", &x.atomicIOBytes)
m.Save("readers", &x.readers)
m.Save("writers", &x.writers)
m.Save("view", &x.view)
m.Save("max", &x.max)
m.Save("hadWriter", &x.hadWriter)
}
func (x *Pipe) afterLoad() {}
func (x *Pipe) load(m state.Map) {
m.Load("isNamed", &x.isNamed)
m.Load("atomicIOBytes", &x.atomicIOBytes)
m.Load("readers", &x.readers)
m.Load("writers", &x.writers)
m.Load("view", &x.view)
m.Load("max", &x.max)
m.Load("hadWriter", &x.hadWriter)
}
func (x *Reader) beforeSave() {}
func (x *Reader) save(m state.Map) {
x.beforeSave()
m.Save("ReaderWriter", &x.ReaderWriter)
}
func (x *Reader) afterLoad() {}
func (x *Reader) load(m state.Map) {
m.Load("ReaderWriter", &x.ReaderWriter)
}
func (x *ReaderWriter) beforeSave() {}
func (x *ReaderWriter) save(m state.Map) {
x.beforeSave()
m.Save("Pipe", &x.Pipe)
}
func (x *ReaderWriter) afterLoad() {}
func (x *ReaderWriter) load(m state.Map) {
m.Load("Pipe", &x.Pipe)
}
func (x *Writer) beforeSave() {}
func (x *Writer) save(m state.Map) {
x.beforeSave()
m.Save("ReaderWriter", &x.ReaderWriter)
}
func (x *Writer) afterLoad() {}
func (x *Writer) load(m state.Map) {
m.Load("ReaderWriter", &x.ReaderWriter)
}
func init() {
state.Register("pkg/sentry/kernel/pipe.inodeOperations", (*inodeOperations)(nil), state.Fns{Save: (*inodeOperations).save, Load: (*inodeOperations).load})
state.Register("pkg/sentry/kernel/pipe.Pipe", (*Pipe)(nil), state.Fns{Save: (*Pipe).save, Load: (*Pipe).load})
state.Register("pkg/sentry/kernel/pipe.Reader", (*Reader)(nil), state.Fns{Save: (*Reader).save, Load: (*Reader).load})
state.Register("pkg/sentry/kernel/pipe.ReaderWriter", (*ReaderWriter)(nil), state.Fns{Save: (*ReaderWriter).save, Load: (*ReaderWriter).load})
state.Register("pkg/sentry/kernel/pipe.Writer", (*Writer)(nil), state.Fns{Save: (*Writer).save, Load: (*Writer).load})
}
|