github.com/nicocha30/gvisor-ligolo@v0.0.0-20230726075806-989fa2c0a413/pkg/sentry/fsimpl/iouringfs/iouringfs_state_autogen.go (about) 1 // automatically generated by stateify. 2 3 package iouringfs 4 5 import ( 6 "github.com/nicocha30/gvisor-ligolo/pkg/state" 7 ) 8 9 func (fd *FileDescription) StateTypeName() string { 10 return "pkg/sentry/fsimpl/iouringfs.FileDescription" 11 } 12 13 func (fd *FileDescription) StateFields() []string { 14 return []string{ 15 "vfsfd", 16 "FileDescriptionDefaultImpl", 17 "DentryMetadataFileDescriptionImpl", 18 "NoLockFD", 19 "mfp", 20 "rbmf", 21 "sqemf", 22 "running", 23 "ioRings", 24 "remap", 25 } 26 } 27 28 // +checklocksignore 29 func (fd *FileDescription) StateSave(stateSinkObject state.Sink) { 30 fd.beforeSave() 31 stateSinkObject.Save(0, &fd.vfsfd) 32 stateSinkObject.Save(1, &fd.FileDescriptionDefaultImpl) 33 stateSinkObject.Save(2, &fd.DentryMetadataFileDescriptionImpl) 34 stateSinkObject.Save(3, &fd.NoLockFD) 35 stateSinkObject.Save(4, &fd.mfp) 36 stateSinkObject.Save(5, &fd.rbmf) 37 stateSinkObject.Save(6, &fd.sqemf) 38 stateSinkObject.Save(7, &fd.running) 39 stateSinkObject.Save(8, &fd.ioRings) 40 stateSinkObject.Save(9, &fd.remap) 41 } 42 43 // +checklocksignore 44 func (fd *FileDescription) StateLoad(stateSourceObject state.Source) { 45 stateSourceObject.Load(0, &fd.vfsfd) 46 stateSourceObject.Load(1, &fd.FileDescriptionDefaultImpl) 47 stateSourceObject.Load(2, &fd.DentryMetadataFileDescriptionImpl) 48 stateSourceObject.Load(3, &fd.NoLockFD) 49 stateSourceObject.Load(4, &fd.mfp) 50 stateSourceObject.Load(5, &fd.rbmf) 51 stateSourceObject.Load(6, &fd.sqemf) 52 stateSourceObject.Load(7, &fd.running) 53 stateSourceObject.Load(8, &fd.ioRings) 54 stateSourceObject.Load(9, &fd.remap) 55 stateSourceObject.AfterLoad(fd.afterLoad) 56 } 57 58 func (sqemf *sqEntriesFile) StateTypeName() string { 59 return "pkg/sentry/fsimpl/iouringfs.sqEntriesFile" 60 } 61 62 func (sqemf *sqEntriesFile) StateFields() []string { 63 return []string{ 64 "fr", 65 } 66 } 67 68 func (sqemf *sqEntriesFile) beforeSave() {} 69 70 // +checklocksignore 71 func (sqemf *sqEntriesFile) StateSave(stateSinkObject state.Sink) { 72 sqemf.beforeSave() 73 stateSinkObject.Save(0, &sqemf.fr) 74 } 75 76 func (sqemf *sqEntriesFile) afterLoad() {} 77 78 // +checklocksignore 79 func (sqemf *sqEntriesFile) StateLoad(stateSourceObject state.Source) { 80 stateSourceObject.Load(0, &sqemf.fr) 81 } 82 83 func (rbmf *ringsBufferFile) StateTypeName() string { 84 return "pkg/sentry/fsimpl/iouringfs.ringsBufferFile" 85 } 86 87 func (rbmf *ringsBufferFile) StateFields() []string { 88 return []string{ 89 "fr", 90 } 91 } 92 93 func (rbmf *ringsBufferFile) beforeSave() {} 94 95 // +checklocksignore 96 func (rbmf *ringsBufferFile) StateSave(stateSinkObject state.Sink) { 97 rbmf.beforeSave() 98 stateSinkObject.Save(0, &rbmf.fr) 99 } 100 101 func (rbmf *ringsBufferFile) afterLoad() {} 102 103 // +checklocksignore 104 func (rbmf *ringsBufferFile) StateLoad(stateSourceObject state.Source) { 105 stateSourceObject.Load(0, &rbmf.fr) 106 } 107 108 func init() { 109 state.Register((*FileDescription)(nil)) 110 state.Register((*sqEntriesFile)(nil)) 111 state.Register((*ringsBufferFile)(nil)) 112 }