blob: 97b5089d1b7fa62505d6f34c432698e13ef23239 (
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 eventfd
import (
"gvisor.dev/gvisor/pkg/state"
)
func (e *EventOperations) StateTypeName() string {
return "pkg/sentry/kernel/eventfd.EventOperations"
}
func (e *EventOperations) StateFields() []string {
return []string{
"wq",
"val",
"semMode",
"hostfd",
}
}
func (e *EventOperations) beforeSave() {}
// +checklocksignore
func (e *EventOperations) StateSave(stateSinkObject state.Sink) {
e.beforeSave()
stateSinkObject.Save(0, &e.wq)
stateSinkObject.Save(1, &e.val)
stateSinkObject.Save(2, &e.semMode)
stateSinkObject.Save(3, &e.hostfd)
}
func (e *EventOperations) afterLoad() {}
// +checklocksignore
func (e *EventOperations) StateLoad(stateSourceObject state.Source) {
stateSourceObject.Load(0, &e.wq)
stateSourceObject.Load(1, &e.val)
stateSourceObject.Load(2, &e.semMode)
stateSourceObject.Load(3, &e.hostfd)
}
func init() {
state.Register((*EventOperations)(nil))
}
|