diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-10-09 19:26:05 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-10-09 19:26:05 +0000 |
commit | 69aa120d401c6d6028aebe4c050cefb4794a60f1 (patch) | |
tree | 9b57d56a75d3900b35c7814bf1417057f8fac933 /pkg/sentry/fsimpl/timerfd | |
parent | 578aece760dd47a06a686f82efab5b650807d4c5 (diff) | |
parent | 743327817faa1aa46ff3b31f74a0c5c2d047d65a (diff) |
Merge release-20200928.0-78-g743327817 (automated)
Diffstat (limited to 'pkg/sentry/fsimpl/timerfd')
-rw-r--r-- | pkg/sentry/fsimpl/timerfd/timerfd_state_autogen.go | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/pkg/sentry/fsimpl/timerfd/timerfd_state_autogen.go b/pkg/sentry/fsimpl/timerfd/timerfd_state_autogen.go index 0bfca83b9..d3c01e9e7 100644 --- a/pkg/sentry/fsimpl/timerfd/timerfd_state_autogen.go +++ b/pkg/sentry/fsimpl/timerfd/timerfd_state_autogen.go @@ -6,11 +6,11 @@ import ( "gvisor.dev/gvisor/pkg/state" ) -func (t *TimerFileDescription) StateTypeName() string { +func (tfd *TimerFileDescription) StateTypeName() string { return "pkg/sentry/fsimpl/timerfd.TimerFileDescription" } -func (t *TimerFileDescription) StateFields() []string { +func (tfd *TimerFileDescription) StateFields() []string { return []string{ "vfsfd", "FileDescriptionDefaultImpl", @@ -22,29 +22,29 @@ func (t *TimerFileDescription) StateFields() []string { } } -func (t *TimerFileDescription) beforeSave() {} - -func (t *TimerFileDescription) StateSave(stateSinkObject state.Sink) { - t.beforeSave() - stateSinkObject.Save(0, &t.vfsfd) - stateSinkObject.Save(1, &t.FileDescriptionDefaultImpl) - stateSinkObject.Save(2, &t.DentryMetadataFileDescriptionImpl) - stateSinkObject.Save(3, &t.NoLockFD) - stateSinkObject.Save(4, &t.events) - stateSinkObject.Save(5, &t.timer) - stateSinkObject.Save(6, &t.val) +func (tfd *TimerFileDescription) beforeSave() {} + +func (tfd *TimerFileDescription) StateSave(stateSinkObject state.Sink) { + tfd.beforeSave() + stateSinkObject.Save(0, &tfd.vfsfd) + stateSinkObject.Save(1, &tfd.FileDescriptionDefaultImpl) + stateSinkObject.Save(2, &tfd.DentryMetadataFileDescriptionImpl) + stateSinkObject.Save(3, &tfd.NoLockFD) + stateSinkObject.Save(4, &tfd.events) + stateSinkObject.Save(5, &tfd.timer) + stateSinkObject.Save(6, &tfd.val) } -func (t *TimerFileDescription) afterLoad() {} +func (tfd *TimerFileDescription) afterLoad() {} -func (t *TimerFileDescription) StateLoad(stateSourceObject state.Source) { - stateSourceObject.Load(0, &t.vfsfd) - stateSourceObject.Load(1, &t.FileDescriptionDefaultImpl) - stateSourceObject.Load(2, &t.DentryMetadataFileDescriptionImpl) - stateSourceObject.Load(3, &t.NoLockFD) - stateSourceObject.Load(4, &t.events) - stateSourceObject.Load(5, &t.timer) - stateSourceObject.Load(6, &t.val) +func (tfd *TimerFileDescription) StateLoad(stateSourceObject state.Source) { + stateSourceObject.Load(0, &tfd.vfsfd) + stateSourceObject.Load(1, &tfd.FileDescriptionDefaultImpl) + stateSourceObject.Load(2, &tfd.DentryMetadataFileDescriptionImpl) + stateSourceObject.Load(3, &tfd.NoLockFD) + stateSourceObject.Load(4, &tfd.events) + stateSourceObject.Load(5, &tfd.timer) + stateSourceObject.Load(6, &tfd.val) } func init() { |