summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/kernel/fasync
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/kernel/fasync
parent8f9d99c812b7599c52ed98f80c1a33717758a5c6 (diff)
parenta55bd73d4802112a7055de8663e947b9c0f42a2e (diff)
Merge release-20200928.0-66-ga55bd73d4 (automated)
Diffstat (limited to 'pkg/sentry/kernel/fasync')
-rw-r--r--pkg/sentry/kernel/fasync/fasync_state_autogen.go38
1 files changed, 19 insertions, 19 deletions
diff --git a/pkg/sentry/kernel/fasync/fasync_state_autogen.go b/pkg/sentry/kernel/fasync/fasync_state_autogen.go
index 8da4a1b44..e4a0b5695 100644
--- a/pkg/sentry/kernel/fasync/fasync_state_autogen.go
+++ b/pkg/sentry/kernel/fasync/fasync_state_autogen.go
@@ -6,11 +6,11 @@ import (
"gvisor.dev/gvisor/pkg/state"
)
-func (x *FileAsync) StateTypeName() string {
+func (f *FileAsync) StateTypeName() string {
return "pkg/sentry/kernel/fasync.FileAsync"
}
-func (x *FileAsync) StateFields() []string {
+func (f *FileAsync) StateFields() []string {
return []string{
"e",
"requester",
@@ -21,27 +21,27 @@ func (x *FileAsync) StateFields() []string {
}
}
-func (x *FileAsync) beforeSave() {}
+func (f *FileAsync) beforeSave() {}
-func (x *FileAsync) StateSave(m state.Sink) {
- x.beforeSave()
- m.Save(0, &x.e)
- m.Save(1, &x.requester)
- m.Save(2, &x.registered)
- m.Save(3, &x.recipientPG)
- m.Save(4, &x.recipientTG)
- m.Save(5, &x.recipientT)
+func (f *FileAsync) StateSave(stateSinkObject state.Sink) {
+ f.beforeSave()
+ stateSinkObject.Save(0, &f.e)
+ stateSinkObject.Save(1, &f.requester)
+ stateSinkObject.Save(2, &f.registered)
+ stateSinkObject.Save(3, &f.recipientPG)
+ stateSinkObject.Save(4, &f.recipientTG)
+ stateSinkObject.Save(5, &f.recipientT)
}
-func (x *FileAsync) afterLoad() {}
+func (f *FileAsync) afterLoad() {}
-func (x *FileAsync) StateLoad(m state.Source) {
- m.Load(0, &x.e)
- m.Load(1, &x.requester)
- m.Load(2, &x.registered)
- m.Load(3, &x.recipientPG)
- m.Load(4, &x.recipientTG)
- m.Load(5, &x.recipientT)
+func (f *FileAsync) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &f.e)
+ stateSourceObject.Load(1, &f.requester)
+ stateSourceObject.Load(2, &f.registered)
+ stateSourceObject.Load(3, &f.recipientPG)
+ stateSourceObject.Load(4, &f.recipientTG)
+ stateSourceObject.Load(5, &f.recipientT)
}
func init() {