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
|
// automatically generated by stateify.
package sockfs
import (
"gvisor.dev/gvisor/pkg/state"
)
func (fsType *filesystemType) StateTypeName() string {
return "pkg/sentry/fsimpl/sockfs.filesystemType"
}
func (fsType *filesystemType) StateFields() []string {
return []string{}
}
func (fsType *filesystemType) beforeSave() {}
// +checklocksignore
func (fsType *filesystemType) StateSave(stateSinkObject state.Sink) {
fsType.beforeSave()
}
func (fsType *filesystemType) afterLoad() {}
// +checklocksignore
func (fsType *filesystemType) StateLoad(stateSourceObject state.Source) {
}
func (fs *filesystem) StateTypeName() string {
return "pkg/sentry/fsimpl/sockfs.filesystem"
}
func (fs *filesystem) StateFields() []string {
return []string{
"Filesystem",
"devMinor",
}
}
func (fs *filesystem) beforeSave() {}
// +checklocksignore
func (fs *filesystem) StateSave(stateSinkObject state.Sink) {
fs.beforeSave()
stateSinkObject.Save(0, &fs.Filesystem)
stateSinkObject.Save(1, &fs.devMinor)
}
func (fs *filesystem) afterLoad() {}
// +checklocksignore
func (fs *filesystem) StateLoad(stateSourceObject state.Source) {
stateSourceObject.Load(0, &fs.Filesystem)
stateSourceObject.Load(1, &fs.devMinor)
}
func (i *inode) StateTypeName() string {
return "pkg/sentry/fsimpl/sockfs.inode"
}
func (i *inode) StateFields() []string {
return []string{
"InodeAttrs",
"InodeNoopRefCount",
"InodeNotDirectory",
"InodeNotSymlink",
}
}
func (i *inode) beforeSave() {}
// +checklocksignore
func (i *inode) StateSave(stateSinkObject state.Sink) {
i.beforeSave()
stateSinkObject.Save(0, &i.InodeAttrs)
stateSinkObject.Save(1, &i.InodeNoopRefCount)
stateSinkObject.Save(2, &i.InodeNotDirectory)
stateSinkObject.Save(3, &i.InodeNotSymlink)
}
func (i *inode) afterLoad() {}
// +checklocksignore
func (i *inode) StateLoad(stateSourceObject state.Source) {
stateSourceObject.Load(0, &i.InodeAttrs)
stateSourceObject.Load(1, &i.InodeNoopRefCount)
stateSourceObject.Load(2, &i.InodeNotDirectory)
stateSourceObject.Load(3, &i.InodeNotSymlink)
}
func init() {
state.Register((*filesystemType)(nil))
state.Register((*filesystem)(nil))
state.Register((*inode)(nil))
}
|