summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/kernel/pipe
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/sentry/kernel/pipe')
-rw-r--r--pkg/sentry/kernel/pipe/pipe_state_autogen.go118
1 files changed, 59 insertions, 59 deletions
diff --git a/pkg/sentry/kernel/pipe/pipe_state_autogen.go b/pkg/sentry/kernel/pipe/pipe_state_autogen.go
index df55abce6..031ea2cc2 100644
--- a/pkg/sentry/kernel/pipe/pipe_state_autogen.go
+++ b/pkg/sentry/kernel/pipe/pipe_state_autogen.go
@@ -6,37 +6,37 @@ import (
"gvisor.dev/gvisor/pkg/state"
)
-func (x *inodeOperations) StateTypeName() string {
+func (i *inodeOperations) StateTypeName() string {
return "pkg/sentry/kernel/pipe.inodeOperations"
}
-func (x *inodeOperations) StateFields() []string {
+func (i *inodeOperations) StateFields() []string {
return []string{
"InodeSimpleAttributes",
"p",
}
}
-func (x *inodeOperations) beforeSave() {}
+func (i *inodeOperations) beforeSave() {}
-func (x *inodeOperations) StateSave(m state.Sink) {
- x.beforeSave()
- m.Save(0, &x.InodeSimpleAttributes)
- m.Save(1, &x.p)
+func (i *inodeOperations) StateSave(stateSinkObject state.Sink) {
+ i.beforeSave()
+ stateSinkObject.Save(0, &i.InodeSimpleAttributes)
+ stateSinkObject.Save(1, &i.p)
}
-func (x *inodeOperations) afterLoad() {}
+func (i *inodeOperations) afterLoad() {}
-func (x *inodeOperations) StateLoad(m state.Source) {
- m.Load(0, &x.InodeSimpleAttributes)
- m.Load(1, &x.p)
+func (i *inodeOperations) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &i.InodeSimpleAttributes)
+ stateSourceObject.Load(1, &i.p)
}
-func (x *Pipe) StateTypeName() string {
+func (p *Pipe) StateTypeName() string {
return "pkg/sentry/kernel/pipe.Pipe"
}
-func (x *Pipe) StateFields() []string {
+func (p *Pipe) StateFields() []string {
return []string{
"isNamed",
"atomicIOBytes",
@@ -48,98 +48,98 @@ func (x *Pipe) StateFields() []string {
}
}
-func (x *Pipe) beforeSave() {}
+func (p *Pipe) beforeSave() {}
-func (x *Pipe) StateSave(m state.Sink) {
- x.beforeSave()
- m.Save(0, &x.isNamed)
- m.Save(1, &x.atomicIOBytes)
- m.Save(2, &x.readers)
- m.Save(3, &x.writers)
- m.Save(4, &x.view)
- m.Save(5, &x.max)
- m.Save(6, &x.hadWriter)
+func (p *Pipe) StateSave(stateSinkObject state.Sink) {
+ p.beforeSave()
+ stateSinkObject.Save(0, &p.isNamed)
+ stateSinkObject.Save(1, &p.atomicIOBytes)
+ stateSinkObject.Save(2, &p.readers)
+ stateSinkObject.Save(3, &p.writers)
+ stateSinkObject.Save(4, &p.view)
+ stateSinkObject.Save(5, &p.max)
+ stateSinkObject.Save(6, &p.hadWriter)
}
-func (x *Pipe) afterLoad() {}
+func (p *Pipe) afterLoad() {}
-func (x *Pipe) StateLoad(m state.Source) {
- m.Load(0, &x.isNamed)
- m.Load(1, &x.atomicIOBytes)
- m.Load(2, &x.readers)
- m.Load(3, &x.writers)
- m.Load(4, &x.view)
- m.Load(5, &x.max)
- m.Load(6, &x.hadWriter)
+func (p *Pipe) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &p.isNamed)
+ stateSourceObject.Load(1, &p.atomicIOBytes)
+ stateSourceObject.Load(2, &p.readers)
+ stateSourceObject.Load(3, &p.writers)
+ stateSourceObject.Load(4, &p.view)
+ stateSourceObject.Load(5, &p.max)
+ stateSourceObject.Load(6, &p.hadWriter)
}
-func (x *Reader) StateTypeName() string {
+func (r *Reader) StateTypeName() string {
return "pkg/sentry/kernel/pipe.Reader"
}
-func (x *Reader) StateFields() []string {
+func (r *Reader) StateFields() []string {
return []string{
"ReaderWriter",
}
}
-func (x *Reader) beforeSave() {}
+func (r *Reader) beforeSave() {}
-func (x *Reader) StateSave(m state.Sink) {
- x.beforeSave()
- m.Save(0, &x.ReaderWriter)
+func (r *Reader) StateSave(stateSinkObject state.Sink) {
+ r.beforeSave()
+ stateSinkObject.Save(0, &r.ReaderWriter)
}
-func (x *Reader) afterLoad() {}
+func (r *Reader) afterLoad() {}
-func (x *Reader) StateLoad(m state.Source) {
- m.Load(0, &x.ReaderWriter)
+func (r *Reader) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &r.ReaderWriter)
}
-func (x *ReaderWriter) StateTypeName() string {
+func (r *ReaderWriter) StateTypeName() string {
return "pkg/sentry/kernel/pipe.ReaderWriter"
}
-func (x *ReaderWriter) StateFields() []string {
+func (r *ReaderWriter) StateFields() []string {
return []string{
"Pipe",
}
}
-func (x *ReaderWriter) beforeSave() {}
+func (r *ReaderWriter) beforeSave() {}
-func (x *ReaderWriter) StateSave(m state.Sink) {
- x.beforeSave()
- m.Save(0, &x.Pipe)
+func (r *ReaderWriter) StateSave(stateSinkObject state.Sink) {
+ r.beforeSave()
+ stateSinkObject.Save(0, &r.Pipe)
}
-func (x *ReaderWriter) afterLoad() {}
+func (r *ReaderWriter) afterLoad() {}
-func (x *ReaderWriter) StateLoad(m state.Source) {
- m.Load(0, &x.Pipe)
+func (r *ReaderWriter) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &r.Pipe)
}
-func (x *Writer) StateTypeName() string {
+func (w *Writer) StateTypeName() string {
return "pkg/sentry/kernel/pipe.Writer"
}
-func (x *Writer) StateFields() []string {
+func (w *Writer) StateFields() []string {
return []string{
"ReaderWriter",
}
}
-func (x *Writer) beforeSave() {}
+func (w *Writer) beforeSave() {}
-func (x *Writer) StateSave(m state.Sink) {
- x.beforeSave()
- m.Save(0, &x.ReaderWriter)
+func (w *Writer) StateSave(stateSinkObject state.Sink) {
+ w.beforeSave()
+ stateSinkObject.Save(0, &w.ReaderWriter)
}
-func (x *Writer) afterLoad() {}
+func (w *Writer) afterLoad() {}
-func (x *Writer) StateLoad(m state.Source) {
- m.Load(0, &x.ReaderWriter)
+func (w *Writer) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &w.ReaderWriter)
}
func init() {