blob: 733c504b1c5615784dd19b402fffc35d657a5687 (
plain)
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
|
// automatically generated by stateify.
package sys
import (
"gvisor.dev/gvisor/pkg/state"
)
func (x *cpunum) beforeSave() {}
func (x *cpunum) save(m state.Map) {
x.beforeSave()
m.Save("InodeSimpleAttributes", &x.InodeSimpleAttributes)
m.Save("InodeStaticFileGetter", &x.InodeStaticFileGetter)
}
func (x *cpunum) afterLoad() {}
func (x *cpunum) load(m state.Map) {
m.Load("InodeSimpleAttributes", &x.InodeSimpleAttributes)
m.Load("InodeStaticFileGetter", &x.InodeStaticFileGetter)
}
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 init() {
state.Register("pkg/sentry/fs/sys.cpunum", (*cpunum)(nil), state.Fns{Save: (*cpunum).save, Load: (*cpunum).load})
state.Register("pkg/sentry/fs/sys.filesystem", (*filesystem)(nil), state.Fns{Save: (*filesystem).save, Load: (*filesystem).load})
}
|