// 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)) }