// automatically generated by stateify. package dev import ( "gvisor.dev/gvisor/pkg/state" ) func (f *filesystem) StateTypeName() string { return "pkg/sentry/fs/dev.filesystem" } func (f *filesystem) StateFields() []string { return []string{} } func (f *filesystem) beforeSave() {} // +checklocksignore func (f *filesystem) StateSave(stateSinkObject state.Sink) { f.beforeSave() } func (f *filesystem) afterLoad() {} // +checklocksignore func (f *filesystem) StateLoad(stateSourceObject state.Source) { } func (f *fullDevice) StateTypeName() string { return "pkg/sentry/fs/dev.fullDevice" } func (f *fullDevice) StateFields() []string { return []string{ "InodeSimpleAttributes", } } func (f *fullDevice) beforeSave() {} // +checklocksignore func (f *fullDevice) StateSave(stateSinkObject state.Sink) { f.beforeSave() stateSinkObject.Save(0, &f.InodeSimpleAttributes) } func (f *fullDevice) afterLoad() {} // +checklocksignore func (f *fullDevice) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &f.InodeSimpleAttributes) } func (f *fullFileOperations) StateTypeName() string { return "pkg/sentry/fs/dev.fullFileOperations" } func (f *fullFileOperations) StateFields() []string { return []string{} } func (f *fullFileOperations) beforeSave() {} // +checklocksignore func (f *fullFileOperations) StateSave(stateSinkObject state.Sink) { f.beforeSave() } func (f *fullFileOperations) afterLoad() {} // +checklocksignore func (f *fullFileOperations) StateLoad(stateSourceObject state.Source) { } func (n *netTunInodeOperations) StateTypeName() string { return "pkg/sentry/fs/dev.netTunInodeOperations" } func (n *netTunInodeOperations) StateFields() []string { return []string{ "InodeSimpleAttributes", } } func (n *netTunInodeOperations) beforeSave() {} // +checklocksignore func (n *netTunInodeOperations) StateSave(stateSinkObject state.Sink) { n.beforeSave() stateSinkObject.Save(0, &n.InodeSimpleAttributes) } func (n *netTunInodeOperations) afterLoad() {} // +checklocksignore func (n *netTunInodeOperations) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &n.InodeSimpleAttributes) } func (n *netTunFileOperations) StateTypeName() string { return "pkg/sentry/fs/dev.netTunFileOperations" } func (n *netTunFileOperations) StateFields() []string { return []string{ "device", } } func (n *netTunFileOperations) beforeSave() {} // +checklocksignore func (n *netTunFileOperations) StateSave(stateSinkObject state.Sink) { n.beforeSave() stateSinkObject.Save(0, &n.device) } func (n *netTunFileOperations) afterLoad() {} // +checklocksignore func (n *netTunFileOperations) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &n.device) } func (n *nullDevice) StateTypeName() string { return "pkg/sentry/fs/dev.nullDevice" } func (n *nullDevice) StateFields() []string { return []string{ "InodeSimpleAttributes", } } func (n *nullDevice) beforeSave() {} // +checklocksignore func (n *nullDevice) StateSave(stateSinkObject state.Sink) { n.beforeSave() stateSinkObject.Save(0, &n.InodeSimpleAttributes) } func (n *nullDevice) afterLoad() {} // +checklocksignore func (n *nullDevice) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &n.InodeSimpleAttributes) } func (n *nullFileOperations) StateTypeName() string { return "pkg/sentry/fs/dev.nullFileOperations" } func (n *nullFileOperations) StateFields() []string { return []string{} } func (n *nullFileOperations) beforeSave() {} // +checklocksignore func (n *nullFileOperations) StateSave(stateSinkObject state.Sink) { n.beforeSave() } func (n *nullFileOperations) afterLoad() {} // +checklocksignore func (n *nullFileOperations) StateLoad(stateSourceObject state.Source) { } func (zd *zeroDevice) StateTypeName() string { return "pkg/sentry/fs/dev.zeroDevice" } func (zd *zeroDevice) StateFields() []string { return []string{ "nullDevice", } } func (zd *zeroDevice) beforeSave() {} // +checklocksignore func (zd *zeroDevice) StateSave(stateSinkObject state.Sink) { zd.beforeSave() stateSinkObject.Save(0, &zd.nullDevice) } func (zd *zeroDevice) afterLoad() {} // +checklocksignore func (zd *zeroDevice) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &zd.nullDevice) } func (z *zeroFileOperations) StateTypeName() string { return "pkg/sentry/fs/dev.zeroFileOperations" } func (z *zeroFileOperations) StateFields() []string { return []string{} } func (z *zeroFileOperations) beforeSave() {} // +checklocksignore func (z *zeroFileOperations) StateSave(stateSinkObject state.Sink) { z.beforeSave() } func (z *zeroFileOperations) afterLoad() {} // +checklocksignore func (z *zeroFileOperations) StateLoad(stateSourceObject state.Source) { } func (r *randomDevice) StateTypeName() string { return "pkg/sentry/fs/dev.randomDevice" } func (r *randomDevice) StateFields() []string { return []string{ "InodeSimpleAttributes", } } func (r *randomDevice) beforeSave() {} // +checklocksignore func (r *randomDevice) StateSave(stateSinkObject state.Sink) { r.beforeSave() stateSinkObject.Save(0, &r.InodeSimpleAttributes) } func (r *randomDevice) afterLoad() {} // +checklocksignore func (r *randomDevice) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &r.InodeSimpleAttributes) } func (r *randomFileOperations) StateTypeName() string { return "pkg/sentry/fs/dev.randomFileOperations" } func (r *randomFileOperations) StateFields() []string { return []string{} } func (r *randomFileOperations) beforeSave() {} // +checklocksignore func (r *randomFileOperations) StateSave(stateSinkObject state.Sink) { r.beforeSave() } func (r *randomFileOperations) afterLoad() {} // +checklocksignore func (r *randomFileOperations) StateLoad(stateSourceObject state.Source) { } func (t *ttyInodeOperations) StateTypeName() string { return "pkg/sentry/fs/dev.ttyInodeOperations" } func (t *ttyInodeOperations) StateFields() []string { return []string{ "InodeSimpleAttributes", } } func (t *ttyInodeOperations) beforeSave() {} // +checklocksignore func (t *ttyInodeOperations) StateSave(stateSinkObject state.Sink) { t.beforeSave() stateSinkObject.Save(0, &t.InodeSimpleAttributes) } func (t *ttyInodeOperations) afterLoad() {} // +checklocksignore func (t *ttyInodeOperations) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &t.InodeSimpleAttributes) } func (t *ttyFileOperations) StateTypeName() string { return "pkg/sentry/fs/dev.ttyFileOperations" } func (t *ttyFileOperations) StateFields() []string { return []string{} } func (t *ttyFileOperations) beforeSave() {} // +checklocksignore func (t *ttyFileOperations) StateSave(stateSinkObject state.Sink) { t.beforeSave() } func (t *ttyFileOperations) afterLoad() {} // +checklocksignore func (t *ttyFileOperations) StateLoad(stateSourceObject state.Source) { } func init() { state.Register((*filesystem)(nil)) state.Register((*fullDevice)(nil)) state.Register((*fullFileOperations)(nil)) state.Register((*netTunInodeOperations)(nil)) state.Register((*netTunFileOperations)(nil)) state.Register((*nullDevice)(nil)) state.Register((*nullFileOperations)(nil)) state.Register((*zeroDevice)(nil)) state.Register((*zeroFileOperations)(nil)) state.Register((*randomDevice)(nil)) state.Register((*randomFileOperations)(nil)) state.Register((*ttyInodeOperations)(nil)) state.Register((*ttyFileOperations)(nil)) }