summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/limits
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/limits
parent8f9d99c812b7599c52ed98f80c1a33717758a5c6 (diff)
parenta55bd73d4802112a7055de8663e947b9c0f42a2e (diff)
Merge release-20200928.0-66-ga55bd73d4 (automated)
Diffstat (limited to 'pkg/sentry/limits')
-rw-r--r--pkg/sentry/limits/limits_state_autogen.go40
1 files changed, 20 insertions, 20 deletions
diff --git a/pkg/sentry/limits/limits_state_autogen.go b/pkg/sentry/limits/limits_state_autogen.go
index 72503d1d7..d619cabd4 100644
--- a/pkg/sentry/limits/limits_state_autogen.go
+++ b/pkg/sentry/limits/limits_state_autogen.go
@@ -6,53 +6,53 @@ import (
"gvisor.dev/gvisor/pkg/state"
)
-func (x *Limit) StateTypeName() string {
+func (l *Limit) StateTypeName() string {
return "pkg/sentry/limits.Limit"
}
-func (x *Limit) StateFields() []string {
+func (l *Limit) StateFields() []string {
return []string{
"Cur",
"Max",
}
}
-func (x *Limit) beforeSave() {}
+func (l *Limit) beforeSave() {}
-func (x *Limit) StateSave(m state.Sink) {
- x.beforeSave()
- m.Save(0, &x.Cur)
- m.Save(1, &x.Max)
+func (l *Limit) StateSave(stateSinkObject state.Sink) {
+ l.beforeSave()
+ stateSinkObject.Save(0, &l.Cur)
+ stateSinkObject.Save(1, &l.Max)
}
-func (x *Limit) afterLoad() {}
+func (l *Limit) afterLoad() {}
-func (x *Limit) StateLoad(m state.Source) {
- m.Load(0, &x.Cur)
- m.Load(1, &x.Max)
+func (l *Limit) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &l.Cur)
+ stateSourceObject.Load(1, &l.Max)
}
-func (x *LimitSet) StateTypeName() string {
+func (l *LimitSet) StateTypeName() string {
return "pkg/sentry/limits.LimitSet"
}
-func (x *LimitSet) StateFields() []string {
+func (l *LimitSet) StateFields() []string {
return []string{
"data",
}
}
-func (x *LimitSet) beforeSave() {}
+func (l *LimitSet) beforeSave() {}
-func (x *LimitSet) StateSave(m state.Sink) {
- x.beforeSave()
- m.Save(0, &x.data)
+func (l *LimitSet) StateSave(stateSinkObject state.Sink) {
+ l.beforeSave()
+ stateSinkObject.Save(0, &l.data)
}
-func (x *LimitSet) afterLoad() {}
+func (l *LimitSet) afterLoad() {}
-func (x *LimitSet) StateLoad(m state.Source) {
- m.Load(0, &x.data)
+func (l *LimitSet) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &l.data)
}
func init() {