blob: 6cab877966ce5185eadf63f94e6dc7a4204bbc72 (
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
|
// automatically generated by stateify.
package timerfd
import (
"gvisor.dev/gvisor/pkg/state"
)
func (t *TimerOperations) StateTypeName() string {
return "pkg/sentry/fs/timerfd.TimerOperations"
}
func (t *TimerOperations) StateFields() []string {
return []string{
"events",
"timer",
"val",
}
}
func (t *TimerOperations) beforeSave() {}
// +checklocksignore
func (t *TimerOperations) StateSave(stateSinkObject state.Sink) {
t.beforeSave()
stateSinkObject.Save(0, &t.events)
stateSinkObject.Save(1, &t.timer)
stateSinkObject.Save(2, &t.val)
}
func (t *TimerOperations) afterLoad() {}
// +checklocksignore
func (t *TimerOperations) StateLoad(stateSourceObject state.Source) {
stateSourceObject.Load(0, &t.events)
stateSourceObject.Load(1, &t.timer)
stateSourceObject.Load(2, &t.val)
}
func init() {
state.Register((*TimerOperations)(nil))
}
|