diff options
Diffstat (limited to 'pkg/sentry/devices')
-rw-r--r-- | pkg/sentry/devices/memdev/memdev_state_autogen.go | 16 | ||||
-rw-r--r-- | pkg/sentry/devices/ttydev/ttydev_state_autogen.go | 2 | ||||
-rw-r--r-- | pkg/sentry/devices/tundev/tundev_state_autogen.go | 4 |
3 files changed, 22 insertions, 0 deletions
diff --git a/pkg/sentry/devices/memdev/memdev_state_autogen.go b/pkg/sentry/devices/memdev/memdev_state_autogen.go index 88de3f2ea..a8faafbbf 100644 --- a/pkg/sentry/devices/memdev/memdev_state_autogen.go +++ b/pkg/sentry/devices/memdev/memdev_state_autogen.go @@ -16,12 +16,14 @@ func (f *fullDevice) StateFields() []string { func (f *fullDevice) beforeSave() {} +// +checklocksignore func (f *fullDevice) StateSave(stateSinkObject state.Sink) { f.beforeSave() } func (f *fullDevice) afterLoad() {} +// +checklocksignore func (f *fullDevice) StateLoad(stateSourceObject state.Source) { } @@ -40,6 +42,7 @@ func (fd *fullFD) StateFields() []string { func (fd *fullFD) beforeSave() {} +// +checklocksignore func (fd *fullFD) StateSave(stateSinkObject state.Sink) { fd.beforeSave() stateSinkObject.Save(0, &fd.vfsfd) @@ -50,6 +53,7 @@ func (fd *fullFD) StateSave(stateSinkObject state.Sink) { func (fd *fullFD) afterLoad() {} +// +checklocksignore func (fd *fullFD) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &fd.vfsfd) stateSourceObject.Load(1, &fd.FileDescriptionDefaultImpl) @@ -67,12 +71,14 @@ func (n *nullDevice) StateFields() []string { func (n *nullDevice) beforeSave() {} +// +checklocksignore func (n *nullDevice) StateSave(stateSinkObject state.Sink) { n.beforeSave() } func (n *nullDevice) afterLoad() {} +// +checklocksignore func (n *nullDevice) StateLoad(stateSourceObject state.Source) { } @@ -91,6 +97,7 @@ func (fd *nullFD) StateFields() []string { func (fd *nullFD) beforeSave() {} +// +checklocksignore func (fd *nullFD) StateSave(stateSinkObject state.Sink) { fd.beforeSave() stateSinkObject.Save(0, &fd.vfsfd) @@ -101,6 +108,7 @@ func (fd *nullFD) StateSave(stateSinkObject state.Sink) { func (fd *nullFD) afterLoad() {} +// +checklocksignore func (fd *nullFD) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &fd.vfsfd) stateSourceObject.Load(1, &fd.FileDescriptionDefaultImpl) @@ -118,12 +126,14 @@ func (r *randomDevice) StateFields() []string { func (r *randomDevice) beforeSave() {} +// +checklocksignore func (r *randomDevice) StateSave(stateSinkObject state.Sink) { r.beforeSave() } func (r *randomDevice) afterLoad() {} +// +checklocksignore func (r *randomDevice) StateLoad(stateSourceObject state.Source) { } @@ -143,6 +153,7 @@ func (fd *randomFD) StateFields() []string { func (fd *randomFD) beforeSave() {} +// +checklocksignore func (fd *randomFD) StateSave(stateSinkObject state.Sink) { fd.beforeSave() stateSinkObject.Save(0, &fd.vfsfd) @@ -154,6 +165,7 @@ func (fd *randomFD) StateSave(stateSinkObject state.Sink) { func (fd *randomFD) afterLoad() {} +// +checklocksignore func (fd *randomFD) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &fd.vfsfd) stateSourceObject.Load(1, &fd.FileDescriptionDefaultImpl) @@ -172,12 +184,14 @@ func (z *zeroDevice) StateFields() []string { func (z *zeroDevice) beforeSave() {} +// +checklocksignore func (z *zeroDevice) StateSave(stateSinkObject state.Sink) { z.beforeSave() } func (z *zeroDevice) afterLoad() {} +// +checklocksignore func (z *zeroDevice) StateLoad(stateSourceObject state.Source) { } @@ -196,6 +210,7 @@ func (fd *zeroFD) StateFields() []string { func (fd *zeroFD) beforeSave() {} +// +checklocksignore func (fd *zeroFD) StateSave(stateSinkObject state.Sink) { fd.beforeSave() stateSinkObject.Save(0, &fd.vfsfd) @@ -206,6 +221,7 @@ func (fd *zeroFD) StateSave(stateSinkObject state.Sink) { func (fd *zeroFD) afterLoad() {} +// +checklocksignore func (fd *zeroFD) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &fd.vfsfd) stateSourceObject.Load(1, &fd.FileDescriptionDefaultImpl) diff --git a/pkg/sentry/devices/ttydev/ttydev_state_autogen.go b/pkg/sentry/devices/ttydev/ttydev_state_autogen.go index 3389b37f3..88a1cd0a6 100644 --- a/pkg/sentry/devices/ttydev/ttydev_state_autogen.go +++ b/pkg/sentry/devices/ttydev/ttydev_state_autogen.go @@ -16,12 +16,14 @@ func (t *ttyDevice) StateFields() []string { func (t *ttyDevice) beforeSave() {} +// +checklocksignore func (t *ttyDevice) StateSave(stateSinkObject state.Sink) { t.beforeSave() } func (t *ttyDevice) afterLoad() {} +// +checklocksignore func (t *ttyDevice) StateLoad(stateSourceObject state.Source) { } diff --git a/pkg/sentry/devices/tundev/tundev_state_autogen.go b/pkg/sentry/devices/tundev/tundev_state_autogen.go index 343d5b8e7..ad7c7feb4 100644 --- a/pkg/sentry/devices/tundev/tundev_state_autogen.go +++ b/pkg/sentry/devices/tundev/tundev_state_autogen.go @@ -16,12 +16,14 @@ func (t *tunDevice) StateFields() []string { func (t *tunDevice) beforeSave() {} +// +checklocksignore func (t *tunDevice) StateSave(stateSinkObject state.Sink) { t.beforeSave() } func (t *tunDevice) afterLoad() {} +// +checklocksignore func (t *tunDevice) StateLoad(stateSourceObject state.Source) { } @@ -41,6 +43,7 @@ func (fd *tunFD) StateFields() []string { func (fd *tunFD) beforeSave() {} +// +checklocksignore func (fd *tunFD) StateSave(stateSinkObject state.Sink) { fd.beforeSave() stateSinkObject.Save(0, &fd.vfsfd) @@ -52,6 +55,7 @@ func (fd *tunFD) StateSave(stateSinkObject state.Sink) { func (fd *tunFD) afterLoad() {} +// +checklocksignore func (fd *tunFD) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &fd.vfsfd) stateSourceObject.Load(1, &fd.FileDescriptionDefaultImpl) |