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