github.com/ttpreport/gvisor-ligolo@v0.0.0-20240123134145-a858404967ba/pkg/sentry/fsimpl/devtmpfs/devtmpfs_state_autogen.go (about) 1 // automatically generated by stateify. 2 3 package devtmpfs 4 5 import ( 6 "github.com/ttpreport/gvisor-ligolo/pkg/state" 7 ) 8 9 func (fst *FilesystemType) StateTypeName() string { 10 return "pkg/sentry/fsimpl/devtmpfs.FilesystemType" 11 } 12 13 func (fst *FilesystemType) StateFields() []string { 14 return []string{ 15 "initErr", 16 "fs", 17 "root", 18 } 19 } 20 21 func (fst *FilesystemType) beforeSave() {} 22 23 // +checklocksignore 24 func (fst *FilesystemType) StateSave(stateSinkObject state.Sink) { 25 fst.beforeSave() 26 stateSinkObject.Save(0, &fst.initErr) 27 stateSinkObject.Save(1, &fst.fs) 28 stateSinkObject.Save(2, &fst.root) 29 } 30 31 // +checklocksignore 32 func (fst *FilesystemType) StateLoad(stateSourceObject state.Source) { 33 stateSourceObject.Load(0, &fst.initErr) 34 stateSourceObject.Load(1, &fst.fs) 35 stateSourceObject.Load(2, &fst.root) 36 stateSourceObject.AfterLoad(fst.afterLoad) 37 } 38 39 func init() { 40 state.Register((*FilesystemType)(nil)) 41 }