summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fsimpl/signalfd
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/signalfd
parent8f9d99c812b7599c52ed98f80c1a33717758a5c6 (diff)
parenta55bd73d4802112a7055de8663e947b9c0f42a2e (diff)
Merge release-20200928.0-66-ga55bd73d4 (automated)
Diffstat (limited to 'pkg/sentry/fsimpl/signalfd')
-rw-r--r--pkg/sentry/fsimpl/signalfd/signalfd_state_autogen.go38
1 files changed, 19 insertions, 19 deletions
diff --git a/pkg/sentry/fsimpl/signalfd/signalfd_state_autogen.go b/pkg/sentry/fsimpl/signalfd/signalfd_state_autogen.go
index acd2ff5b4..4a1496528 100644
--- a/pkg/sentry/fsimpl/signalfd/signalfd_state_autogen.go
+++ b/pkg/sentry/fsimpl/signalfd/signalfd_state_autogen.go
@@ -6,11 +6,11 @@ import (
"gvisor.dev/gvisor/pkg/state"
)
-func (x *SignalFileDescription) StateTypeName() string {
+func (s *SignalFileDescription) StateTypeName() string {
return "pkg/sentry/fsimpl/signalfd.SignalFileDescription"
}
-func (x *SignalFileDescription) StateFields() []string {
+func (s *SignalFileDescription) StateFields() []string {
return []string{
"vfsfd",
"FileDescriptionDefaultImpl",
@@ -21,27 +21,27 @@ func (x *SignalFileDescription) StateFields() []string {
}
}
-func (x *SignalFileDescription) beforeSave() {}
+func (s *SignalFileDescription) beforeSave() {}
-func (x *SignalFileDescription) 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.target)
- m.Save(5, &x.mask)
+func (s *SignalFileDescription) StateSave(stateSinkObject state.Sink) {
+ s.beforeSave()
+ stateSinkObject.Save(0, &s.vfsfd)
+ stateSinkObject.Save(1, &s.FileDescriptionDefaultImpl)
+ stateSinkObject.Save(2, &s.DentryMetadataFileDescriptionImpl)
+ stateSinkObject.Save(3, &s.NoLockFD)
+ stateSinkObject.Save(4, &s.target)
+ stateSinkObject.Save(5, &s.mask)
}
-func (x *SignalFileDescription) afterLoad() {}
+func (s *SignalFileDescription) afterLoad() {}
-func (x *SignalFileDescription) 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.target)
- m.Load(5, &x.mask)
+func (s *SignalFileDescription) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &s.vfsfd)
+ stateSourceObject.Load(1, &s.FileDescriptionDefaultImpl)
+ stateSourceObject.Load(2, &s.DentryMetadataFileDescriptionImpl)
+ stateSourceObject.Load(3, &s.NoLockFD)
+ stateSourceObject.Load(4, &s.target)
+ stateSourceObject.Load(5, &s.mask)
}
func init() {