// automatically generated by stateify. package vfs2 import ( "gvisor.dev/gvisor/pkg/state" ) func (p *pollRestartBlock) StateTypeName() string { return "pkg/sentry/syscalls/linux/vfs2.pollRestartBlock" } func (p *pollRestartBlock) StateFields() []string { return []string{ "pfdAddr", "nfds", "timeout", } } func (p *pollRestartBlock) beforeSave() {} func (p *pollRestartBlock) StateSave(stateSinkObject state.Sink) { p.beforeSave() stateSinkObject.Save(0, &p.pfdAddr) stateSinkObject.Save(1, &p.nfds) stateSinkObject.Save(2, &p.timeout) } func (p *pollRestartBlock) afterLoad() {} func (p *pollRestartBlock) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &p.pfdAddr) stateSourceObject.Load(1, &p.nfds) stateSourceObject.Load(2, &p.timeout) } func init() { state.Register((*pollRestartBlock)(nil)) }