blob: 570100331fdf36c82c4e6f2192f8fd5ec3a555d7 (
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
|
// automatically generated by stateify.
package vfs2
import (
"gvisor.dev/gvisor/pkg/state"
)
func (x *pollRestartBlock) beforeSave() {}
func (x *pollRestartBlock) save(m state.Map) {
x.beforeSave()
m.Save("pfdAddr", &x.pfdAddr)
m.Save("nfds", &x.nfds)
m.Save("timeout", &x.timeout)
}
func (x *pollRestartBlock) afterLoad() {}
func (x *pollRestartBlock) load(m state.Map) {
m.Load("pfdAddr", &x.pfdAddr)
m.Load("nfds", &x.nfds)
m.Load("timeout", &x.timeout)
}
func init() {
state.Register("pkg/sentry/syscalls/linux/vfs2.pollRestartBlock", (*pollRestartBlock)(nil), state.Fns{Save: (*pollRestartBlock).save, Load: (*pollRestartBlock).load})
}
|