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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
// automatically generated by stateify.
package tmpfs
import (
"gvisor.googlesource.com/gvisor/pkg/state"
)
func (x *regularFileOperations) beforeSave() {}
func (x *regularFileOperations) save(m state.Map) {
x.beforeSave()
m.Save("iops", &x.iops)
}
func (x *regularFileOperations) afterLoad() {}
func (x *regularFileOperations) load(m state.Map) {
m.Load("iops", &x.iops)
}
func (x *Filesystem) beforeSave() {}
func (x *Filesystem) save(m state.Map) {
x.beforeSave()
}
func (x *Filesystem) afterLoad() {}
func (x *Filesystem) load(m state.Map) {
}
func (x *fileInodeOperations) beforeSave() {}
func (x *fileInodeOperations) save(m state.Map) {
x.beforeSave()
m.Save("InodeSimpleExtendedAttributes", &x.InodeSimpleExtendedAttributes)
m.Save("kernel", &x.kernel)
m.Save("memUsage", &x.memUsage)
m.Save("attr", &x.attr)
m.Save("mappings", &x.mappings)
m.Save("writableMappingPages", &x.writableMappingPages)
m.Save("data", &x.data)
m.Save("seals", &x.seals)
}
func (x *fileInodeOperations) afterLoad() {}
func (x *fileInodeOperations) load(m state.Map) {
m.Load("InodeSimpleExtendedAttributes", &x.InodeSimpleExtendedAttributes)
m.Load("kernel", &x.kernel)
m.Load("memUsage", &x.memUsage)
m.Load("attr", &x.attr)
m.Load("mappings", &x.mappings)
m.Load("writableMappingPages", &x.writableMappingPages)
m.Load("data", &x.data)
m.Load("seals", &x.seals)
}
func (x *Dir) beforeSave() {}
func (x *Dir) save(m state.Map) {
x.beforeSave()
m.Save("ramfsDir", &x.ramfsDir)
m.Save("kernel", &x.kernel)
}
func (x *Dir) load(m state.Map) {
m.Load("ramfsDir", &x.ramfsDir)
m.Load("kernel", &x.kernel)
m.AfterLoad(x.afterLoad)
}
func (x *Symlink) beforeSave() {}
func (x *Symlink) save(m state.Map) {
x.beforeSave()
m.Save("Symlink", &x.Symlink)
}
func (x *Symlink) afterLoad() {}
func (x *Symlink) load(m state.Map) {
m.Load("Symlink", &x.Symlink)
}
func (x *Socket) beforeSave() {}
func (x *Socket) save(m state.Map) {
x.beforeSave()
m.Save("Socket", &x.Socket)
}
func (x *Socket) afterLoad() {}
func (x *Socket) load(m state.Map) {
m.Load("Socket", &x.Socket)
}
func (x *Fifo) beforeSave() {}
func (x *Fifo) save(m state.Map) {
x.beforeSave()
m.Save("InodeOperations", &x.InodeOperations)
}
func (x *Fifo) afterLoad() {}
func (x *Fifo) load(m state.Map) {
m.Load("InodeOperations", &x.InodeOperations)
}
func init() {
state.Register("tmpfs.regularFileOperations", (*regularFileOperations)(nil), state.Fns{Save: (*regularFileOperations).save, Load: (*regularFileOperations).load})
state.Register("tmpfs.Filesystem", (*Filesystem)(nil), state.Fns{Save: (*Filesystem).save, Load: (*Filesystem).load})
state.Register("tmpfs.fileInodeOperations", (*fileInodeOperations)(nil), state.Fns{Save: (*fileInodeOperations).save, Load: (*fileInodeOperations).load})
state.Register("tmpfs.Dir", (*Dir)(nil), state.Fns{Save: (*Dir).save, Load: (*Dir).load})
state.Register("tmpfs.Symlink", (*Symlink)(nil), state.Fns{Save: (*Symlink).save, Load: (*Symlink).load})
state.Register("tmpfs.Socket", (*Socket)(nil), state.Fns{Save: (*Socket).save, Load: (*Socket).load})
state.Register("tmpfs.Fifo", (*Fifo)(nil), state.Fns{Save: (*Fifo).save, Load: (*Fifo).load})
}
|