blob: 247aba66b1c7fda8d4ee4c0a76b2ba02c75de634 (
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
35
36
37
38
39
40
41
42
43
44
45
|
// automatically generated by stateify.
package fdpipe
import (
"gvisor.dev/gvisor/pkg/sentry/fs"
"gvisor.dev/gvisor/pkg/state"
)
func (p *pipeOperations) StateTypeName() string {
return "pkg/sentry/fs/fdpipe.pipeOperations"
}
func (p *pipeOperations) StateFields() []string {
return []string{
"Queue",
"flags",
"opener",
"readAheadBuffer",
}
}
// +checklocksignore
func (p *pipeOperations) StateSave(stateSinkObject state.Sink) {
p.beforeSave()
var flagsValue fs.FileFlags
flagsValue = p.saveFlags()
stateSinkObject.SaveValue(1, flagsValue)
stateSinkObject.Save(0, &p.Queue)
stateSinkObject.Save(2, &p.opener)
stateSinkObject.Save(3, &p.readAheadBuffer)
}
// +checklocksignore
func (p *pipeOperations) StateLoad(stateSourceObject state.Source) {
stateSourceObject.Load(0, &p.Queue)
stateSourceObject.LoadWait(2, &p.opener)
stateSourceObject.Load(3, &p.readAheadBuffer)
stateSourceObject.LoadValue(1, new(fs.FileFlags), func(y interface{}) { p.loadFlags(y.(fs.FileFlags)) })
stateSourceObject.AfterLoad(p.afterLoad)
}
func init() {
state.Register((*pipeOperations)(nil))
}
|