summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fsimpl/timerfd
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-10-08 01:32:17 +0000
committergVisor bot <gvisor-bot@google.com>2020-10-08 01:32:17 +0000
commit8f70c8003e9d132fc766ed7d92ce805c093d518b (patch)
tree6d77a3246e3f04605790d410e7630cb910704ced /pkg/sentry/fsimpl/timerfd
parent8f9d99c812b7599c52ed98f80c1a33717758a5c6 (diff)
parenta55bd73d4802112a7055de8663e947b9c0f42a2e (diff)
Merge release-20200928.0-66-ga55bd73d4 (automated)
Diffstat (limited to 'pkg/sentry/fsimpl/timerfd')
-rw-r--r--pkg/sentry/fsimpl/timerfd/timerfd_state_autogen.go44
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 722153ff8..0bfca83b9 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 (x *TimerFileDescription) StateTypeName() string {
+func (t *TimerFileDescription) StateTypeName() string {
return "pkg/sentry/fsimpl/timerfd.TimerFileDescription"
}
-func (x *TimerFileDescription) StateFields() []string {
+func (t *TimerFileDescription) StateFields() []string {
return []string{
"vfsfd",
"FileDescriptionDefaultImpl",
@@ -22,29 +22,29 @@ func (x *TimerFileDescription) StateFields() []string {
}
}
-func (x *TimerFileDescription) beforeSave() {}
-
-func (x *TimerFileDescription) StateSave(m state.Sink) {
- x.beforeSave()
- m.Save(0, &x.vfsfd)
- m.Save(1, &x.FileDescriptionDefaultImpl)
- m.Save(2, &x.DentryMetadataFileDescriptionImpl)
- m.Save(3, &x.NoLockFD)
- m.Save(4, &x.events)
- m.Save(5, &x.timer)
- m.Save(6, &x.val)
+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 (x *TimerFileDescription) afterLoad() {}
+func (t *TimerFileDescription) afterLoad() {}
-func (x *TimerFileDescription) StateLoad(m state.Source) {
- m.Load(0, &x.vfsfd)
- m.Load(1, &x.FileDescriptionDefaultImpl)
- m.Load(2, &x.DentryMetadataFileDescriptionImpl)
- m.Load(3, &x.NoLockFD)
- m.Load(4, &x.events)
- m.Load(5, &x.timer)
- m.Load(6, &x.val)
+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 init() {