github.com/nicocha30/gvisor-ligolo@v0.0.0-20230726075806-989fa2c0a413/pkg/sentry/vfs/memxattr/memxattr_state_autogen.go (about) 1 // automatically generated by stateify. 2 3 package memxattr 4 5 import ( 6 "github.com/nicocha30/gvisor-ligolo/pkg/state" 7 ) 8 9 func (x *SimpleExtendedAttributes) StateTypeName() string { 10 return "pkg/sentry/vfs/memxattr.SimpleExtendedAttributes" 11 } 12 13 func (x *SimpleExtendedAttributes) StateFields() []string { 14 return []string{ 15 "xattrs", 16 } 17 } 18 19 func (x *SimpleExtendedAttributes) beforeSave() {} 20 21 // +checklocksignore 22 func (x *SimpleExtendedAttributes) StateSave(stateSinkObject state.Sink) { 23 x.beforeSave() 24 stateSinkObject.Save(0, &x.xattrs) 25 } 26 27 func (x *SimpleExtendedAttributes) afterLoad() {} 28 29 // +checklocksignore 30 func (x *SimpleExtendedAttributes) StateLoad(stateSourceObject state.Source) { 31 stateSourceObject.Load(0, &x.xattrs) 32 } 33 34 func init() { 35 state.Register((*SimpleExtendedAttributes)(nil)) 36 }