blob: 38c1ed916cd8d9746e9b5ca15aa1e8d89472f187 (
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
|
// automatically generated by stateify.
package fdpipe
import (
"gvisor.dev/gvisor/pkg/state"
"gvisor.dev/gvisor/pkg/sentry/fs"
)
func (x *pipeOperations) save(m state.Map) {
x.beforeSave()
var flags fs.FileFlags = x.saveFlags()
m.SaveValue("flags", flags)
m.Save("opener", &x.opener)
m.Save("readAheadBuffer", &x.readAheadBuffer)
}
func (x *pipeOperations) load(m state.Map) {
m.LoadWait("opener", &x.opener)
m.Load("readAheadBuffer", &x.readAheadBuffer)
m.LoadValue("flags", new(fs.FileFlags), func(y interface{}) { x.loadFlags(y.(fs.FileFlags)) })
m.AfterLoad(x.afterLoad)
}
func init() {
state.Register("fdpipe.pipeOperations", (*pipeOperations)(nil), state.Fns{Save: (*pipeOperations).save, Load: (*pipeOperations).load})
}
|