summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/socket
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/socket
parent8f9d99c812b7599c52ed98f80c1a33717758a5c6 (diff)
parenta55bd73d4802112a7055de8663e947b9c0f42a2e (diff)
Merge release-20200928.0-66-ga55bd73d4 (automated)
Diffstat (limited to 'pkg/sentry/socket')
-rw-r--r--pkg/sentry/socket/control/control_state_autogen.go30
-rw-r--r--pkg/sentry/socket/hostinet/hostinet_state_autogen.go38
-rw-r--r--pkg/sentry/socket/netlink/netlink_state_autogen.go94
-rw-r--r--pkg/sentry/socket/netlink/port/port_state_autogen.go18
-rw-r--r--pkg/sentry/socket/netlink/route/route_state_autogen.go14
-rw-r--r--pkg/sentry/socket/netlink/uevent/uevent_state_autogen.go14
-rw-r--r--pkg/sentry/socket/netstack/netstack_state_autogen.go110
-rw-r--r--pkg/sentry/socket/socket_state_autogen.go22
-rw-r--r--pkg/sentry/socket/unix/transport/transport_state_autogen.go322
-rw-r--r--pkg/sentry/socket/unix/unix_state_autogen.go130
10 files changed, 396 insertions, 396 deletions
diff --git a/pkg/sentry/socket/control/control_state_autogen.go b/pkg/sentry/socket/control/control_state_autogen.go
index f3adf8927..98cd79747 100644
--- a/pkg/sentry/socket/control/control_state_autogen.go
+++ b/pkg/sentry/socket/control/control_state_autogen.go
@@ -6,19 +6,19 @@ import (
"gvisor.dev/gvisor/pkg/state"
)
-func (x *RightsFiles) StateTypeName() string {
+func (r *RightsFiles) StateTypeName() string {
return "pkg/sentry/socket/control.RightsFiles"
}
-func (x *RightsFiles) StateFields() []string {
+func (r *RightsFiles) StateFields() []string {
return nil
}
-func (x *scmCredentials) StateTypeName() string {
+func (s *scmCredentials) StateTypeName() string {
return "pkg/sentry/socket/control.scmCredentials"
}
-func (x *scmCredentials) StateFields() []string {
+func (s *scmCredentials) StateFields() []string {
return []string{
"t",
"kuid",
@@ -26,21 +26,21 @@ func (x *scmCredentials) StateFields() []string {
}
}
-func (x *scmCredentials) beforeSave() {}
+func (s *scmCredentials) beforeSave() {}
-func (x *scmCredentials) StateSave(m state.Sink) {
- x.beforeSave()
- m.Save(0, &x.t)
- m.Save(1, &x.kuid)
- m.Save(2, &x.kgid)
+func (s *scmCredentials) StateSave(stateSinkObject state.Sink) {
+ s.beforeSave()
+ stateSinkObject.Save(0, &s.t)
+ stateSinkObject.Save(1, &s.kuid)
+ stateSinkObject.Save(2, &s.kgid)
}
-func (x *scmCredentials) afterLoad() {}
+func (s *scmCredentials) afterLoad() {}
-func (x *scmCredentials) StateLoad(m state.Source) {
- m.Load(0, &x.t)
- m.Load(1, &x.kuid)
- m.Load(2, &x.kgid)
+func (s *scmCredentials) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &s.t)
+ stateSourceObject.Load(1, &s.kuid)
+ stateSourceObject.Load(2, &s.kgid)
}
func init() {
diff --git a/pkg/sentry/socket/hostinet/hostinet_state_autogen.go b/pkg/sentry/socket/hostinet/hostinet_state_autogen.go
index 4ee4df33b..6d427c0db 100644
--- a/pkg/sentry/socket/hostinet/hostinet_state_autogen.go
+++ b/pkg/sentry/socket/hostinet/hostinet_state_autogen.go
@@ -6,11 +6,11 @@ import (
"gvisor.dev/gvisor/pkg/state"
)
-func (x *socketOpsCommon) StateTypeName() string {
+func (s *socketOpsCommon) StateTypeName() string {
return "pkg/sentry/socket/hostinet.socketOpsCommon"
}
-func (x *socketOpsCommon) StateFields() []string {
+func (s *socketOpsCommon) StateFields() []string {
return []string{
"SendReceiveTimeout",
"family",
@@ -21,27 +21,27 @@ func (x *socketOpsCommon) StateFields() []string {
}
}
-func (x *socketOpsCommon) beforeSave() {}
+func (s *socketOpsCommon) beforeSave() {}
-func (x *socketOpsCommon) StateSave(m state.Sink) {
- x.beforeSave()
- m.Save(0, &x.SendReceiveTimeout)
- m.Save(1, &x.family)
- m.Save(2, &x.stype)
- m.Save(3, &x.protocol)
- m.Save(4, &x.queue)
- m.Save(5, &x.fd)
+func (s *socketOpsCommon) StateSave(stateSinkObject state.Sink) {
+ s.beforeSave()
+ stateSinkObject.Save(0, &s.SendReceiveTimeout)
+ stateSinkObject.Save(1, &s.family)
+ stateSinkObject.Save(2, &s.stype)
+ stateSinkObject.Save(3, &s.protocol)
+ stateSinkObject.Save(4, &s.queue)
+ stateSinkObject.Save(5, &s.fd)
}
-func (x *socketOpsCommon) afterLoad() {}
+func (s *socketOpsCommon) afterLoad() {}
-func (x *socketOpsCommon) StateLoad(m state.Source) {
- m.Load(0, &x.SendReceiveTimeout)
- m.Load(1, &x.family)
- m.Load(2, &x.stype)
- m.Load(3, &x.protocol)
- m.Load(4, &x.queue)
- m.Load(5, &x.fd)
+func (s *socketOpsCommon) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &s.SendReceiveTimeout)
+ stateSourceObject.Load(1, &s.family)
+ stateSourceObject.Load(2, &s.stype)
+ stateSourceObject.Load(3, &s.protocol)
+ stateSourceObject.Load(4, &s.queue)
+ stateSourceObject.Load(5, &s.fd)
}
func init() {
diff --git a/pkg/sentry/socket/netlink/netlink_state_autogen.go b/pkg/sentry/socket/netlink/netlink_state_autogen.go
index 5a7a09b6d..f561d7f90 100644
--- a/pkg/sentry/socket/netlink/netlink_state_autogen.go
+++ b/pkg/sentry/socket/netlink/netlink_state_autogen.go
@@ -6,34 +6,34 @@ import (
"gvisor.dev/gvisor/pkg/state"
)
-func (x *Socket) StateTypeName() string {
+func (s *Socket) StateTypeName() string {
return "pkg/sentry/socket/netlink.Socket"
}
-func (x *Socket) StateFields() []string {
+func (s *Socket) StateFields() []string {
return []string{
"socketOpsCommon",
}
}
-func (x *Socket) beforeSave() {}
+func (s *Socket) beforeSave() {}
-func (x *Socket) StateSave(m state.Sink) {
- x.beforeSave()
- m.Save(0, &x.socketOpsCommon)
+func (s *Socket) StateSave(stateSinkObject state.Sink) {
+ s.beforeSave()
+ stateSinkObject.Save(0, &s.socketOpsCommon)
}
-func (x *Socket) afterLoad() {}
+func (s *Socket) afterLoad() {}
-func (x *Socket) StateLoad(m state.Source) {
- m.Load(0, &x.socketOpsCommon)
+func (s *Socket) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &s.socketOpsCommon)
}
-func (x *socketOpsCommon) StateTypeName() string {
+func (s *socketOpsCommon) StateTypeName() string {
return "pkg/sentry/socket/netlink.socketOpsCommon"
}
-func (x *socketOpsCommon) StateFields() []string {
+func (s *socketOpsCommon) StateFields() []string {
return []string{
"SendReceiveTimeout",
"ports",
@@ -49,56 +49,56 @@ func (x *socketOpsCommon) StateFields() []string {
}
}
-func (x *socketOpsCommon) beforeSave() {}
-
-func (x *socketOpsCommon) StateSave(m state.Sink) {
- x.beforeSave()
- m.Save(0, &x.SendReceiveTimeout)
- m.Save(1, &x.ports)
- m.Save(2, &x.protocol)
- m.Save(3, &x.skType)
- m.Save(4, &x.ep)
- m.Save(5, &x.connection)
- m.Save(6, &x.bound)
- m.Save(7, &x.portID)
- m.Save(8, &x.sendBufferSize)
- m.Save(9, &x.passcred)
- m.Save(10, &x.filter)
+func (s *socketOpsCommon) beforeSave() {}
+
+func (s *socketOpsCommon) StateSave(stateSinkObject state.Sink) {
+ s.beforeSave()
+ stateSinkObject.Save(0, &s.SendReceiveTimeout)
+ stateSinkObject.Save(1, &s.ports)
+ stateSinkObject.Save(2, &s.protocol)
+ stateSinkObject.Save(3, &s.skType)
+ stateSinkObject.Save(4, &s.ep)
+ stateSinkObject.Save(5, &s.connection)
+ stateSinkObject.Save(6, &s.bound)
+ stateSinkObject.Save(7, &s.portID)
+ stateSinkObject.Save(8, &s.sendBufferSize)
+ stateSinkObject.Save(9, &s.passcred)
+ stateSinkObject.Save(10, &s.filter)
}
-func (x *socketOpsCommon) afterLoad() {}
-
-func (x *socketOpsCommon) StateLoad(m state.Source) {
- m.Load(0, &x.SendReceiveTimeout)
- m.Load(1, &x.ports)
- m.Load(2, &x.protocol)
- m.Load(3, &x.skType)
- m.Load(4, &x.ep)
- m.Load(5, &x.connection)
- m.Load(6, &x.bound)
- m.Load(7, &x.portID)
- m.Load(8, &x.sendBufferSize)
- m.Load(9, &x.passcred)
- m.Load(10, &x.filter)
+func (s *socketOpsCommon) afterLoad() {}
+
+func (s *socketOpsCommon) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &s.SendReceiveTimeout)
+ stateSourceObject.Load(1, &s.ports)
+ stateSourceObject.Load(2, &s.protocol)
+ stateSourceObject.Load(3, &s.skType)
+ stateSourceObject.Load(4, &s.ep)
+ stateSourceObject.Load(5, &s.connection)
+ stateSourceObject.Load(6, &s.bound)
+ stateSourceObject.Load(7, &s.portID)
+ stateSourceObject.Load(8, &s.sendBufferSize)
+ stateSourceObject.Load(9, &s.passcred)
+ stateSourceObject.Load(10, &s.filter)
}
-func (x *kernelSCM) StateTypeName() string {
+func (k *kernelSCM) StateTypeName() string {
return "pkg/sentry/socket/netlink.kernelSCM"
}
-func (x *kernelSCM) StateFields() []string {
+func (k *kernelSCM) StateFields() []string {
return []string{}
}
-func (x *kernelSCM) beforeSave() {}
+func (k *kernelSCM) beforeSave() {}
-func (x *kernelSCM) StateSave(m state.Sink) {
- x.beforeSave()
+func (k *kernelSCM) StateSave(stateSinkObject state.Sink) {
+ k.beforeSave()
}
-func (x *kernelSCM) afterLoad() {}
+func (k *kernelSCM) afterLoad() {}
-func (x *kernelSCM) StateLoad(m state.Source) {
+func (k *kernelSCM) StateLoad(stateSourceObject state.Source) {
}
func init() {
diff --git a/pkg/sentry/socket/netlink/port/port_state_autogen.go b/pkg/sentry/socket/netlink/port/port_state_autogen.go
index 16c59e616..e0083fcad 100644
--- a/pkg/sentry/socket/netlink/port/port_state_autogen.go
+++ b/pkg/sentry/socket/netlink/port/port_state_autogen.go
@@ -6,27 +6,27 @@ import (
"gvisor.dev/gvisor/pkg/state"
)
-func (x *Manager) StateTypeName() string {
+func (m *Manager) StateTypeName() string {
return "pkg/sentry/socket/netlink/port.Manager"
}
-func (x *Manager) StateFields() []string {
+func (m *Manager) StateFields() []string {
return []string{
"ports",
}
}
-func (x *Manager) beforeSave() {}
+func (m *Manager) beforeSave() {}
-func (x *Manager) StateSave(m state.Sink) {
- x.beforeSave()
- m.Save(0, &x.ports)
+func (m *Manager) StateSave(stateSinkObject state.Sink) {
+ m.beforeSave()
+ stateSinkObject.Save(0, &m.ports)
}
-func (x *Manager) afterLoad() {}
+func (m *Manager) afterLoad() {}
-func (x *Manager) StateLoad(m state.Source) {
- m.Load(0, &x.ports)
+func (m *Manager) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &m.ports)
}
func init() {
diff --git a/pkg/sentry/socket/netlink/route/route_state_autogen.go b/pkg/sentry/socket/netlink/route/route_state_autogen.go
index bc0111017..0b263b5b1 100644
--- a/pkg/sentry/socket/netlink/route/route_state_autogen.go
+++ b/pkg/sentry/socket/netlink/route/route_state_autogen.go
@@ -6,23 +6,23 @@ import (
"gvisor.dev/gvisor/pkg/state"
)
-func (x *Protocol) StateTypeName() string {
+func (p *Protocol) StateTypeName() string {
return "pkg/sentry/socket/netlink/route.Protocol"
}
-func (x *Protocol) StateFields() []string {
+func (p *Protocol) StateFields() []string {
return []string{}
}
-func (x *Protocol) beforeSave() {}
+func (p *Protocol) beforeSave() {}
-func (x *Protocol) StateSave(m state.Sink) {
- x.beforeSave()
+func (p *Protocol) StateSave(stateSinkObject state.Sink) {
+ p.beforeSave()
}
-func (x *Protocol) afterLoad() {}
+func (p *Protocol) afterLoad() {}
-func (x *Protocol) StateLoad(m state.Source) {
+func (p *Protocol) StateLoad(stateSourceObject state.Source) {
}
func init() {
diff --git a/pkg/sentry/socket/netlink/uevent/uevent_state_autogen.go b/pkg/sentry/socket/netlink/uevent/uevent_state_autogen.go
index 4f2211ec2..63f488594 100644
--- a/pkg/sentry/socket/netlink/uevent/uevent_state_autogen.go
+++ b/pkg/sentry/socket/netlink/uevent/uevent_state_autogen.go
@@ -6,23 +6,23 @@ import (
"gvisor.dev/gvisor/pkg/state"
)
-func (x *Protocol) StateTypeName() string {
+func (p *Protocol) StateTypeName() string {
return "pkg/sentry/socket/netlink/uevent.Protocol"
}
-func (x *Protocol) StateFields() []string {
+func (p *Protocol) StateFields() []string {
return []string{}
}
-func (x *Protocol) beforeSave() {}
+func (p *Protocol) beforeSave() {}
-func (x *Protocol) StateSave(m state.Sink) {
- x.beforeSave()
+func (p *Protocol) StateSave(stateSinkObject state.Sink) {
+ p.beforeSave()
}
-func (x *Protocol) afterLoad() {}
+func (p *Protocol) afterLoad() {}
-func (x *Protocol) StateLoad(m state.Source) {
+func (p *Protocol) StateLoad(stateSourceObject state.Source) {
}
func init() {
diff --git a/pkg/sentry/socket/netstack/netstack_state_autogen.go b/pkg/sentry/socket/netstack/netstack_state_autogen.go
index 27e3ada76..983bed1b3 100644
--- a/pkg/sentry/socket/netstack/netstack_state_autogen.go
+++ b/pkg/sentry/socket/netstack/netstack_state_autogen.go
@@ -6,34 +6,34 @@ import (
"gvisor.dev/gvisor/pkg/state"
)
-func (x *SocketOperations) StateTypeName() string {
+func (s *SocketOperations) StateTypeName() string {
return "pkg/sentry/socket/netstack.SocketOperations"
}
-func (x *SocketOperations) StateFields() []string {
+func (s *SocketOperations) StateFields() []string {
return []string{
"socketOpsCommon",
}
}
-func (x *SocketOperations) beforeSave() {}
+func (s *SocketOperations) beforeSave() {}
-func (x *SocketOperations) StateSave(m state.Sink) {
- x.beforeSave()
- m.Save(0, &x.socketOpsCommon)
+func (s *SocketOperations) StateSave(stateSinkObject state.Sink) {
+ s.beforeSave()
+ stateSinkObject.Save(0, &s.socketOpsCommon)
}
-func (x *SocketOperations) afterLoad() {}
+func (s *SocketOperations) afterLoad() {}
-func (x *SocketOperations) StateLoad(m state.Source) {
- m.Load(0, &x.socketOpsCommon)
+func (s *SocketOperations) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &s.socketOpsCommon)
}
-func (x *socketOpsCommon) StateTypeName() string {
+func (s *socketOpsCommon) StateTypeName() string {
return "pkg/sentry/socket/netstack.socketOpsCommon"
}
-func (x *socketOpsCommon) StateFields() []string {
+func (s *socketOpsCommon) StateFields() []string {
return []string{
"SendReceiveTimeout",
"Queue",
@@ -53,63 +53,63 @@ func (x *socketOpsCommon) StateFields() []string {
}
}
-func (x *socketOpsCommon) beforeSave() {}
-
-func (x *socketOpsCommon) StateSave(m state.Sink) {
- x.beforeSave()
- m.Save(0, &x.SendReceiveTimeout)
- m.Save(1, &x.Queue)
- m.Save(2, &x.family)
- m.Save(3, &x.Endpoint)
- m.Save(4, &x.skType)
- m.Save(5, &x.protocol)
- m.Save(6, &x.readViewHasData)
- m.Save(7, &x.readView)
- m.Save(8, &x.readCM)
- m.Save(9, &x.sender)
- m.Save(10, &x.linkPacketInfo)
- m.Save(11, &x.sockOptTimestamp)
- m.Save(12, &x.timestampValid)
- m.Save(13, &x.timestampNS)
- m.Save(14, &x.sockOptInq)
+func (s *socketOpsCommon) beforeSave() {}
+
+func (s *socketOpsCommon) StateSave(stateSinkObject state.Sink) {
+ s.beforeSave()
+ stateSinkObject.Save(0, &s.SendReceiveTimeout)
+ stateSinkObject.Save(1, &s.Queue)
+ stateSinkObject.Save(2, &s.family)
+ stateSinkObject.Save(3, &s.Endpoint)
+ stateSinkObject.Save(4, &s.skType)
+ stateSinkObject.Save(5, &s.protocol)
+ stateSinkObject.Save(6, &s.readViewHasData)
+ stateSinkObject.Save(7, &s.readView)
+ stateSinkObject.Save(8, &s.readCM)
+ stateSinkObject.Save(9, &s.sender)
+ stateSinkObject.Save(10, &s.linkPacketInfo)
+ stateSinkObject.Save(11, &s.sockOptTimestamp)
+ stateSinkObject.Save(12, &s.timestampValid)
+ stateSinkObject.Save(13, &s.timestampNS)
+ stateSinkObject.Save(14, &s.sockOptInq)
}
-func (x *socketOpsCommon) afterLoad() {}
-
-func (x *socketOpsCommon) StateLoad(m state.Source) {
- m.Load(0, &x.SendReceiveTimeout)
- m.Load(1, &x.Queue)
- m.Load(2, &x.family)
- m.Load(3, &x.Endpoint)
- m.Load(4, &x.skType)
- m.Load(5, &x.protocol)
- m.Load(6, &x.readViewHasData)
- m.Load(7, &x.readView)
- m.Load(8, &x.readCM)
- m.Load(9, &x.sender)
- m.Load(10, &x.linkPacketInfo)
- m.Load(11, &x.sockOptTimestamp)
- m.Load(12, &x.timestampValid)
- m.Load(13, &x.timestampNS)
- m.Load(14, &x.sockOptInq)
+func (s *socketOpsCommon) afterLoad() {}
+
+func (s *socketOpsCommon) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &s.SendReceiveTimeout)
+ stateSourceObject.Load(1, &s.Queue)
+ stateSourceObject.Load(2, &s.family)
+ stateSourceObject.Load(3, &s.Endpoint)
+ stateSourceObject.Load(4, &s.skType)
+ stateSourceObject.Load(5, &s.protocol)
+ stateSourceObject.Load(6, &s.readViewHasData)
+ stateSourceObject.Load(7, &s.readView)
+ stateSourceObject.Load(8, &s.readCM)
+ stateSourceObject.Load(9, &s.sender)
+ stateSourceObject.Load(10, &s.linkPacketInfo)
+ stateSourceObject.Load(11, &s.sockOptTimestamp)
+ stateSourceObject.Load(12, &s.timestampValid)
+ stateSourceObject.Load(13, &s.timestampNS)
+ stateSourceObject.Load(14, &s.sockOptInq)
}
-func (x *Stack) StateTypeName() string {
+func (s *Stack) StateTypeName() string {
return "pkg/sentry/socket/netstack.Stack"
}
-func (x *Stack) StateFields() []string {
+func (s *Stack) StateFields() []string {
return []string{}
}
-func (x *Stack) beforeSave() {}
+func (s *Stack) beforeSave() {}
-func (x *Stack) StateSave(m state.Sink) {
- x.beforeSave()
+func (s *Stack) StateSave(stateSinkObject state.Sink) {
+ s.beforeSave()
}
-func (x *Stack) StateLoad(m state.Source) {
- m.AfterLoad(x.afterLoad)
+func (s *Stack) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.AfterLoad(s.afterLoad)
}
func init() {
diff --git a/pkg/sentry/socket/socket_state_autogen.go b/pkg/sentry/socket/socket_state_autogen.go
index 2865933e9..e09c161ca 100644
--- a/pkg/sentry/socket/socket_state_autogen.go
+++ b/pkg/sentry/socket/socket_state_autogen.go
@@ -6,30 +6,30 @@ import (
"gvisor.dev/gvisor/pkg/state"
)
-func (x *SendReceiveTimeout) StateTypeName() string {
+func (s *SendReceiveTimeout) StateTypeName() string {
return "pkg/sentry/socket.SendReceiveTimeout"
}
-func (x *SendReceiveTimeout) StateFields() []string {
+func (s *SendReceiveTimeout) StateFields() []string {
return []string{
"send",
"recv",
}
}
-func (x *SendReceiveTimeout) beforeSave() {}
+func (s *SendReceiveTimeout) beforeSave() {}
-func (x *SendReceiveTimeout) StateSave(m state.Sink) {
- x.beforeSave()
- m.Save(0, &x.send)
- m.Save(1, &x.recv)
+func (s *SendReceiveTimeout) StateSave(stateSinkObject state.Sink) {
+ s.beforeSave()
+ stateSinkObject.Save(0, &s.send)
+ stateSinkObject.Save(1, &s.recv)
}
-func (x *SendReceiveTimeout) afterLoad() {}
+func (s *SendReceiveTimeout) afterLoad() {}
-func (x *SendReceiveTimeout) StateLoad(m state.Source) {
- m.Load(0, &x.send)
- m.Load(1, &x.recv)
+func (s *SendReceiveTimeout) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &s.send)
+ stateSourceObject.Load(1, &s.recv)
}
func init() {
diff --git a/pkg/sentry/socket/unix/transport/transport_state_autogen.go b/pkg/sentry/socket/unix/transport/transport_state_autogen.go
index 98f5bc2e5..0264e8fb5 100644
--- a/pkg/sentry/socket/unix/transport/transport_state_autogen.go
+++ b/pkg/sentry/socket/unix/transport/transport_state_autogen.go
@@ -6,11 +6,11 @@ import (
"gvisor.dev/gvisor/pkg/state"
)
-func (x *connectionedEndpoint) StateTypeName() string {
+func (c *connectionedEndpoint) StateTypeName() string {
return "pkg/sentry/socket/unix/transport.connectionedEndpoint"
}
-func (x *connectionedEndpoint) StateFields() []string {
+func (c *connectionedEndpoint) StateFields() []string {
return []string{
"baseEndpoint",
"id",
@@ -20,56 +20,56 @@ func (x *connectionedEndpoint) StateFields() []string {
}
}
-func (x *connectionedEndpoint) beforeSave() {}
+func (c *connectionedEndpoint) beforeSave() {}
-func (x *connectionedEndpoint) StateSave(m state.Sink) {
- x.beforeSave()
- var acceptedChan []*connectionedEndpoint = x.saveAcceptedChan()
- m.SaveValue(4, acceptedChan)
- m.Save(0, &x.baseEndpoint)
- m.Save(1, &x.id)
- m.Save(2, &x.idGenerator)
- m.Save(3, &x.stype)
+func (c *connectionedEndpoint) StateSave(stateSinkObject state.Sink) {
+ c.beforeSave()
+ var acceptedChanValue []*connectionedEndpoint = c.saveAcceptedChan()
+ stateSinkObject.SaveValue(4, acceptedChanValue)
+ stateSinkObject.Save(0, &c.baseEndpoint)
+ stateSinkObject.Save(1, &c.id)
+ stateSinkObject.Save(2, &c.idGenerator)
+ stateSinkObject.Save(3, &c.stype)
}
-func (x *connectionedEndpoint) afterLoad() {}
+func (c *connectionedEndpoint) afterLoad() {}
-func (x *connectionedEndpoint) StateLoad(m state.Source) {
- m.Load(0, &x.baseEndpoint)
- m.Load(1, &x.id)
- m.Load(2, &x.idGenerator)
- m.Load(3, &x.stype)
- m.LoadValue(4, new([]*connectionedEndpoint), func(y interface{}) { x.loadAcceptedChan(y.([]*connectionedEndpoint)) })
+func (c *connectionedEndpoint) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &c.baseEndpoint)
+ stateSourceObject.Load(1, &c.id)
+ stateSourceObject.Load(2, &c.idGenerator)
+ stateSourceObject.Load(3, &c.stype)
+ stateSourceObject.LoadValue(4, new([]*connectionedEndpoint), func(y interface{}) { c.loadAcceptedChan(y.([]*connectionedEndpoint)) })
}
-func (x *connectionlessEndpoint) StateTypeName() string {
+func (c *connectionlessEndpoint) StateTypeName() string {
return "pkg/sentry/socket/unix/transport.connectionlessEndpoint"
}
-func (x *connectionlessEndpoint) StateFields() []string {
+func (c *connectionlessEndpoint) StateFields() []string {
return []string{
"baseEndpoint",
}
}
-func (x *connectionlessEndpoint) beforeSave() {}
+func (c *connectionlessEndpoint) beforeSave() {}
-func (x *connectionlessEndpoint) StateSave(m state.Sink) {
- x.beforeSave()
- m.Save(0, &x.baseEndpoint)
+func (c *connectionlessEndpoint) StateSave(stateSinkObject state.Sink) {
+ c.beforeSave()
+ stateSinkObject.Save(0, &c.baseEndpoint)
}
-func (x *connectionlessEndpoint) afterLoad() {}
+func (c *connectionlessEndpoint) afterLoad() {}
-func (x *connectionlessEndpoint) StateLoad(m state.Source) {
- m.Load(0, &x.baseEndpoint)
+func (c *connectionlessEndpoint) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &c.baseEndpoint)
}
-func (x *queue) StateTypeName() string {
+func (q *queue) StateTypeName() string {
return "pkg/sentry/socket/unix/transport.queue"
}
-func (x *queue) StateFields() []string {
+func (q *queue) StateFields() []string {
return []string{
"queueRefs",
"ReaderQueue",
@@ -82,139 +82,139 @@ func (x *queue) StateFields() []string {
}
}
-func (x *queue) beforeSave() {}
+func (q *queue) beforeSave() {}
-func (x *queue) StateSave(m state.Sink) {
- x.beforeSave()
- m.Save(0, &x.queueRefs)
- m.Save(1, &x.ReaderQueue)
- m.Save(2, &x.WriterQueue)
- m.Save(3, &x.closed)
- m.Save(4, &x.unread)
- m.Save(5, &x.used)
- m.Save(6, &x.limit)
- m.Save(7, &x.dataList)
+func (q *queue) StateSave(stateSinkObject state.Sink) {
+ q.beforeSave()
+ stateSinkObject.Save(0, &q.queueRefs)
+ stateSinkObject.Save(1, &q.ReaderQueue)
+ stateSinkObject.Save(2, &q.WriterQueue)
+ stateSinkObject.Save(3, &q.closed)
+ stateSinkObject.Save(4, &q.unread)
+ stateSinkObject.Save(5, &q.used)
+ stateSinkObject.Save(6, &q.limit)
+ stateSinkObject.Save(7, &q.dataList)
}
-func (x *queue) afterLoad() {}
+func (q *queue) afterLoad() {}
-func (x *queue) StateLoad(m state.Source) {
- m.Load(0, &x.queueRefs)
- m.Load(1, &x.ReaderQueue)
- m.Load(2, &x.WriterQueue)
- m.Load(3, &x.closed)
- m.Load(4, &x.unread)
- m.Load(5, &x.used)
- m.Load(6, &x.limit)
- m.Load(7, &x.dataList)
+func (q *queue) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &q.queueRefs)
+ stateSourceObject.Load(1, &q.ReaderQueue)
+ stateSourceObject.Load(2, &q.WriterQueue)
+ stateSourceObject.Load(3, &q.closed)
+ stateSourceObject.Load(4, &q.unread)
+ stateSourceObject.Load(5, &q.used)
+ stateSourceObject.Load(6, &q.limit)
+ stateSourceObject.Load(7, &q.dataList)
}
-func (x *queueRefs) StateTypeName() string {
+func (q *queueRefs) StateTypeName() string {
return "pkg/sentry/socket/unix/transport.queueRefs"
}
-func (x *queueRefs) StateFields() []string {
+func (q *queueRefs) StateFields() []string {
return []string{
"refCount",
}
}
-func (x *queueRefs) beforeSave() {}
+func (q *queueRefs) beforeSave() {}
-func (x *queueRefs) StateSave(m state.Sink) {
- x.beforeSave()
- m.Save(0, &x.refCount)
+func (q *queueRefs) StateSave(stateSinkObject state.Sink) {
+ q.beforeSave()
+ stateSinkObject.Save(0, &q.refCount)
}
-func (x *queueRefs) afterLoad() {}
+func (q *queueRefs) afterLoad() {}
-func (x *queueRefs) StateLoad(m state.Source) {
- m.Load(0, &x.refCount)
+func (q *queueRefs) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &q.refCount)
}
-func (x *messageList) StateTypeName() string {
+func (m *messageList) StateTypeName() string {
return "pkg/sentry/socket/unix/transport.messageList"
}
-func (x *messageList) StateFields() []string {
+func (m *messageList) StateFields() []string {
return []string{
"head",
"tail",
}
}
-func (x *messageList) beforeSave() {}
+func (m *messageList) beforeSave() {}
-func (x *messageList) StateSave(m state.Sink) {
- x.beforeSave()
- m.Save(0, &x.head)
- m.Save(1, &x.tail)
+func (m *messageList) StateSave(stateSinkObject state.Sink) {
+ m.beforeSave()
+ stateSinkObject.Save(0, &m.head)
+ stateSinkObject.Save(1, &m.tail)
}
-func (x *messageList) afterLoad() {}
+func (m *messageList) afterLoad() {}
-func (x *messageList) StateLoad(m state.Source) {
- m.Load(0, &x.head)
- m.Load(1, &x.tail)
+func (m *messageList) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &m.head)
+ stateSourceObject.Load(1, &m.tail)
}
-func (x *messageEntry) StateTypeName() string {
+func (m *messageEntry) StateTypeName() string {
return "pkg/sentry/socket/unix/transport.messageEntry"
}
-func (x *messageEntry) StateFields() []string {
+func (m *messageEntry) StateFields() []string {
return []string{
"next",
"prev",
}
}
-func (x *messageEntry) beforeSave() {}
+func (m *messageEntry) beforeSave() {}
-func (x *messageEntry) StateSave(m state.Sink) {
- x.beforeSave()
- m.Save(0, &x.next)
- m.Save(1, &x.prev)
+func (m *messageEntry) StateSave(stateSinkObject state.Sink) {
+ m.beforeSave()
+ stateSinkObject.Save(0, &m.next)
+ stateSinkObject.Save(1, &m.prev)
}
-func (x *messageEntry) afterLoad() {}
+func (m *messageEntry) afterLoad() {}
-func (x *messageEntry) StateLoad(m state.Source) {
- m.Load(0, &x.next)
- m.Load(1, &x.prev)
+func (m *messageEntry) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &m.next)
+ stateSourceObject.Load(1, &m.prev)
}
-func (x *ControlMessages) StateTypeName() string {
+func (c *ControlMessages) StateTypeName() string {
return "pkg/sentry/socket/unix/transport.ControlMessages"
}
-func (x *ControlMessages) StateFields() []string {
+func (c *ControlMessages) StateFields() []string {
return []string{
"Rights",
"Credentials",
}
}
-func (x *ControlMessages) beforeSave() {}
+func (c *ControlMessages) beforeSave() {}
-func (x *ControlMessages) StateSave(m state.Sink) {
- x.beforeSave()
- m.Save(0, &x.Rights)
- m.Save(1, &x.Credentials)
+func (c *ControlMessages) StateSave(stateSinkObject state.Sink) {
+ c.beforeSave()
+ stateSinkObject.Save(0, &c.Rights)
+ stateSinkObject.Save(1, &c.Credentials)
}
-func (x *ControlMessages) afterLoad() {}
+func (c *ControlMessages) afterLoad() {}
-func (x *ControlMessages) StateLoad(m state.Source) {
- m.Load(0, &x.Rights)
- m.Load(1, &x.Credentials)
+func (c *ControlMessages) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &c.Rights)
+ stateSourceObject.Load(1, &c.Credentials)
}
-func (x *message) StateTypeName() string {
+func (m *message) StateTypeName() string {
return "pkg/sentry/socket/unix/transport.message"
}
-func (x *message) StateFields() []string {
+func (m *message) StateFields() []string {
return []string{
"messageEntry",
"Data",
@@ -223,53 +223,53 @@ func (x *message) StateFields() []string {
}
}
-func (x *message) beforeSave() {}
+func (m *message) beforeSave() {}
-func (x *message) StateSave(m state.Sink) {
- x.beforeSave()
- m.Save(0, &x.messageEntry)
- m.Save(1, &x.Data)
- m.Save(2, &x.Control)
- m.Save(3, &x.Address)
+func (m *message) StateSave(stateSinkObject state.Sink) {
+ m.beforeSave()
+ stateSinkObject.Save(0, &m.messageEntry)
+ stateSinkObject.Save(1, &m.Data)
+ stateSinkObject.Save(2, &m.Control)
+ stateSinkObject.Save(3, &m.Address)
}
-func (x *message) afterLoad() {}
+func (m *message) afterLoad() {}
-func (x *message) StateLoad(m state.Source) {
- m.Load(0, &x.messageEntry)
- m.Load(1, &x.Data)
- m.Load(2, &x.Control)
- m.Load(3, &x.Address)
+func (m *message) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &m.messageEntry)
+ stateSourceObject.Load(1, &m.Data)
+ stateSourceObject.Load(2, &m.Control)
+ stateSourceObject.Load(3, &m.Address)
}
-func (x *queueReceiver) StateTypeName() string {
+func (q *queueReceiver) StateTypeName() string {
return "pkg/sentry/socket/unix/transport.queueReceiver"
}
-func (x *queueReceiver) StateFields() []string {
+func (q *queueReceiver) StateFields() []string {
return []string{
"readQueue",
}
}
-func (x *queueReceiver) beforeSave() {}
+func (q *queueReceiver) beforeSave() {}
-func (x *queueReceiver) StateSave(m state.Sink) {
- x.beforeSave()
- m.Save(0, &x.readQueue)
+func (q *queueReceiver) StateSave(stateSinkObject state.Sink) {
+ q.beforeSave()
+ stateSinkObject.Save(0, &q.readQueue)
}
-func (x *queueReceiver) afterLoad() {}
+func (q *queueReceiver) afterLoad() {}
-func (x *queueReceiver) StateLoad(m state.Source) {
- m.Load(0, &x.readQueue)
+func (q *queueReceiver) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &q.readQueue)
}
-func (x *streamQueueReceiver) StateTypeName() string {
+func (s *streamQueueReceiver) StateTypeName() string {
return "pkg/sentry/socket/unix/transport.streamQueueReceiver"
}
-func (x *streamQueueReceiver) StateFields() []string {
+func (s *streamQueueReceiver) StateFields() []string {
return []string{
"queueReceiver",
"buffer",
@@ -278,56 +278,56 @@ func (x *streamQueueReceiver) StateFields() []string {
}
}
-func (x *streamQueueReceiver) beforeSave() {}
+func (s *streamQueueReceiver) beforeSave() {}
-func (x *streamQueueReceiver) StateSave(m state.Sink) {
- x.beforeSave()
- m.Save(0, &x.queueReceiver)
- m.Save(1, &x.buffer)
- m.Save(2, &x.control)
- m.Save(3, &x.addr)
+func (s *streamQueueReceiver) StateSave(stateSinkObject state.Sink) {
+ s.beforeSave()
+ stateSinkObject.Save(0, &s.queueReceiver)
+ stateSinkObject.Save(1, &s.buffer)
+ stateSinkObject.Save(2, &s.control)
+ stateSinkObject.Save(3, &s.addr)
}
-func (x *streamQueueReceiver) afterLoad() {}
+func (s *streamQueueReceiver) afterLoad() {}
-func (x *streamQueueReceiver) StateLoad(m state.Source) {
- m.Load(0, &x.queueReceiver)
- m.Load(1, &x.buffer)
- m.Load(2, &x.control)
- m.Load(3, &x.addr)
+func (s *streamQueueReceiver) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &s.queueReceiver)
+ stateSourceObject.Load(1, &s.buffer)
+ stateSourceObject.Load(2, &s.control)
+ stateSourceObject.Load(3, &s.addr)
}
-func (x *connectedEndpoint) StateTypeName() string {
+func (c *connectedEndpoint) StateTypeName() string {
return "pkg/sentry/socket/unix/transport.connectedEndpoint"
}
-func (x *connectedEndpoint) StateFields() []string {
+func (c *connectedEndpoint) StateFields() []string {
return []string{
"endpoint",
"writeQueue",
}
}
-func (x *connectedEndpoint) beforeSave() {}
+func (c *connectedEndpoint) beforeSave() {}
-func (x *connectedEndpoint) StateSave(m state.Sink) {
- x.beforeSave()
- m.Save(0, &x.endpoint)
- m.Save(1, &x.writeQueue)
+func (c *connectedEndpoint) StateSave(stateSinkObject state.Sink) {
+ c.beforeSave()
+ stateSinkObject.Save(0, &c.endpoint)
+ stateSinkObject.Save(1, &c.writeQueue)
}
-func (x *connectedEndpoint) afterLoad() {}
+func (c *connectedEndpoint) afterLoad() {}
-func (x *connectedEndpoint) StateLoad(m state.Source) {
- m.Load(0, &x.endpoint)
- m.Load(1, &x.writeQueue)
+func (c *connectedEndpoint) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &c.endpoint)
+ stateSourceObject.Load(1, &c.writeQueue)
}
-func (x *baseEndpoint) StateTypeName() string {
+func (b *baseEndpoint) StateTypeName() string {
return "pkg/sentry/socket/unix/transport.baseEndpoint"
}
-func (x *baseEndpoint) StateFields() []string {
+func (b *baseEndpoint) StateFields() []string {
return []string{
"Queue",
"passcred",
@@ -338,27 +338,27 @@ func (x *baseEndpoint) StateFields() []string {
}
}
-func (x *baseEndpoint) beforeSave() {}
+func (b *baseEndpoint) beforeSave() {}
-func (x *baseEndpoint) StateSave(m state.Sink) {
- x.beforeSave()
- m.Save(0, &x.Queue)
- m.Save(1, &x.passcred)
- m.Save(2, &x.receiver)
- m.Save(3, &x.connected)
- m.Save(4, &x.path)
- m.Save(5, &x.linger)
+func (b *baseEndpoint) StateSave(stateSinkObject state.Sink) {
+ b.beforeSave()
+ stateSinkObject.Save(0, &b.Queue)
+ stateSinkObject.Save(1, &b.passcred)
+ stateSinkObject.Save(2, &b.receiver)
+ stateSinkObject.Save(3, &b.connected)
+ stateSinkObject.Save(4, &b.path)
+ stateSinkObject.Save(5, &b.linger)
}
-func (x *baseEndpoint) afterLoad() {}
+func (b *baseEndpoint) afterLoad() {}
-func (x *baseEndpoint) StateLoad(m state.Source) {
- m.Load(0, &x.Queue)
- m.Load(1, &x.passcred)
- m.Load(2, &x.receiver)
- m.Load(3, &x.connected)
- m.Load(4, &x.path)
- m.Load(5, &x.linger)
+func (b *baseEndpoint) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &b.Queue)
+ stateSourceObject.Load(1, &b.passcred)
+ stateSourceObject.Load(2, &b.receiver)
+ stateSourceObject.Load(3, &b.connected)
+ stateSourceObject.Load(4, &b.path)
+ stateSourceObject.Load(5, &b.linger)
}
func init() {
diff --git a/pkg/sentry/socket/unix/unix_state_autogen.go b/pkg/sentry/socket/unix/unix_state_autogen.go
index 51fd66b78..4afe51e7c 100644
--- a/pkg/sentry/socket/unix/unix_state_autogen.go
+++ b/pkg/sentry/socket/unix/unix_state_autogen.go
@@ -6,83 +6,83 @@ import (
"gvisor.dev/gvisor/pkg/state"
)
-func (x *socketOperationsRefs) StateTypeName() string {
+func (s *socketOperationsRefs) StateTypeName() string {
return "pkg/sentry/socket/unix.socketOperationsRefs"
}
-func (x *socketOperationsRefs) StateFields() []string {
+func (s *socketOperationsRefs) StateFields() []string {
return []string{
"refCount",
}
}
-func (x *socketOperationsRefs) beforeSave() {}
+func (s *socketOperationsRefs) beforeSave() {}
-func (x *socketOperationsRefs) StateSave(m state.Sink) {
- x.beforeSave()
- m.Save(0, &x.refCount)
+func (s *socketOperationsRefs) StateSave(stateSinkObject state.Sink) {
+ s.beforeSave()
+ stateSinkObject.Save(0, &s.refCount)
}
-func (x *socketOperationsRefs) afterLoad() {}
+func (s *socketOperationsRefs) afterLoad() {}
-func (x *socketOperationsRefs) StateLoad(m state.Source) {
- m.Load(0, &x.refCount)
+func (s *socketOperationsRefs) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &s.refCount)
}
-func (x *socketVFS2Refs) StateTypeName() string {
+func (s *socketVFS2Refs) StateTypeName() string {
return "pkg/sentry/socket/unix.socketVFS2Refs"
}
-func (x *socketVFS2Refs) StateFields() []string {
+func (s *socketVFS2Refs) StateFields() []string {
return []string{
"refCount",
}
}
-func (x *socketVFS2Refs) beforeSave() {}
+func (s *socketVFS2Refs) beforeSave() {}
-func (x *socketVFS2Refs) StateSave(m state.Sink) {
- x.beforeSave()
- m.Save(0, &x.refCount)
+func (s *socketVFS2Refs) StateSave(stateSinkObject state.Sink) {
+ s.beforeSave()
+ stateSinkObject.Save(0, &s.refCount)
}
-func (x *socketVFS2Refs) afterLoad() {}
+func (s *socketVFS2Refs) afterLoad() {}
-func (x *socketVFS2Refs) StateLoad(m state.Source) {
- m.Load(0, &x.refCount)
+func (s *socketVFS2Refs) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &s.refCount)
}
-func (x *SocketOperations) StateTypeName() string {
+func (s *SocketOperations) StateTypeName() string {
return "pkg/sentry/socket/unix.SocketOperations"
}
-func (x *SocketOperations) StateFields() []string {
+func (s *SocketOperations) StateFields() []string {
return []string{
"socketOperationsRefs",
"socketOpsCommon",
}
}
-func (x *SocketOperations) beforeSave() {}
+func (s *SocketOperations) beforeSave() {}
-func (x *SocketOperations) StateSave(m state.Sink) {
- x.beforeSave()
- m.Save(0, &x.socketOperationsRefs)
- m.Save(1, &x.socketOpsCommon)
+func (s *SocketOperations) StateSave(stateSinkObject state.Sink) {
+ s.beforeSave()
+ stateSinkObject.Save(0, &s.socketOperationsRefs)
+ stateSinkObject.Save(1, &s.socketOpsCommon)
}
-func (x *SocketOperations) afterLoad() {}
+func (s *SocketOperations) afterLoad() {}
-func (x *SocketOperations) StateLoad(m state.Source) {
- m.Load(0, &x.socketOperationsRefs)
- m.Load(1, &x.socketOpsCommon)
+func (s *SocketOperations) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &s.socketOperationsRefs)
+ stateSourceObject.Load(1, &s.socketOpsCommon)
}
-func (x *socketOpsCommon) StateTypeName() string {
+func (s *socketOpsCommon) StateTypeName() string {
return "pkg/sentry/socket/unix.socketOpsCommon"
}
-func (x *socketOpsCommon) StateFields() []string {
+func (s *socketOpsCommon) StateFields() []string {
return []string{
"SendReceiveTimeout",
"ep",
@@ -92,32 +92,32 @@ func (x *socketOpsCommon) StateFields() []string {
}
}
-func (x *socketOpsCommon) beforeSave() {}
+func (s *socketOpsCommon) beforeSave() {}
-func (x *socketOpsCommon) StateSave(m state.Sink) {
- x.beforeSave()
- m.Save(0, &x.SendReceiveTimeout)
- m.Save(1, &x.ep)
- m.Save(2, &x.stype)
- m.Save(3, &x.abstractName)
- m.Save(4, &x.abstractNamespace)
+func (s *socketOpsCommon) StateSave(stateSinkObject state.Sink) {
+ s.beforeSave()
+ stateSinkObject.Save(0, &s.SendReceiveTimeout)
+ stateSinkObject.Save(1, &s.ep)
+ stateSinkObject.Save(2, &s.stype)
+ stateSinkObject.Save(3, &s.abstractName)
+ stateSinkObject.Save(4, &s.abstractNamespace)
}
-func (x *socketOpsCommon) afterLoad() {}
+func (s *socketOpsCommon) afterLoad() {}
-func (x *socketOpsCommon) StateLoad(m state.Source) {
- m.Load(0, &x.SendReceiveTimeout)
- m.Load(1, &x.ep)
- m.Load(2, &x.stype)
- m.Load(3, &x.abstractName)
- m.Load(4, &x.abstractNamespace)
+func (s *socketOpsCommon) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &s.SendReceiveTimeout)
+ stateSourceObject.Load(1, &s.ep)
+ stateSourceObject.Load(2, &s.stype)
+ stateSourceObject.Load(3, &s.abstractName)
+ stateSourceObject.Load(4, &s.abstractNamespace)
}
-func (x *SocketVFS2) StateTypeName() string {
+func (s *SocketVFS2) StateTypeName() string {
return "pkg/sentry/socket/unix.SocketVFS2"
}
-func (x *SocketVFS2) StateFields() []string {
+func (s *SocketVFS2) StateFields() []string {
return []string{
"vfsfd",
"FileDescriptionDefaultImpl",
@@ -128,27 +128,27 @@ func (x *SocketVFS2) StateFields() []string {
}
}
-func (x *SocketVFS2) beforeSave() {}
+func (s *SocketVFS2) beforeSave() {}
-func (x *SocketVFS2) 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.LockFD)
- m.Save(4, &x.socketVFS2Refs)
- m.Save(5, &x.socketOpsCommon)
+func (s *SocketVFS2) 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.LockFD)
+ stateSinkObject.Save(4, &s.socketVFS2Refs)
+ stateSinkObject.Save(5, &s.socketOpsCommon)
}
-func (x *SocketVFS2) afterLoad() {}
+func (s *SocketVFS2) afterLoad() {}
-func (x *SocketVFS2) StateLoad(m state.Source) {
- m.Load(0, &x.vfsfd)
- m.Load(1, &x.FileDescriptionDefaultImpl)
- m.Load(2, &x.DentryMetadataFileDescriptionImpl)
- m.Load(3, &x.LockFD)
- m.Load(4, &x.socketVFS2Refs)
- m.Load(5, &x.socketOpsCommon)
+func (s *SocketVFS2) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &s.vfsfd)
+ stateSourceObject.Load(1, &s.FileDescriptionDefaultImpl)
+ stateSourceObject.Load(2, &s.DentryMetadataFileDescriptionImpl)
+ stateSourceObject.Load(3, &s.LockFD)
+ stateSourceObject.Load(4, &s.socketVFS2Refs)
+ stateSourceObject.Load(5, &s.socketOpsCommon)
}
func init() {