github.com/nicocha30/gvisor-ligolo@v0.0.0-20230726075806-989fa2c0a413/pkg/tcpip/link/qdisc/fifo/fifo_state_autogen.go (about) 1 // automatically generated by stateify. 2 3 package fifo 4 5 import ( 6 "github.com/nicocha30/gvisor-ligolo/pkg/state" 7 ) 8 9 func (pl *packetBufferCircularList) StateTypeName() string { 10 return "pkg/tcpip/link/qdisc/fifo.packetBufferCircularList" 11 } 12 13 func (pl *packetBufferCircularList) StateFields() []string { 14 return []string{ 15 "pbs", 16 "head", 17 "size", 18 } 19 } 20 21 func (pl *packetBufferCircularList) beforeSave() {} 22 23 // +checklocksignore 24 func (pl *packetBufferCircularList) StateSave(stateSinkObject state.Sink) { 25 pl.beforeSave() 26 stateSinkObject.Save(0, &pl.pbs) 27 stateSinkObject.Save(1, &pl.head) 28 stateSinkObject.Save(2, &pl.size) 29 } 30 31 func (pl *packetBufferCircularList) afterLoad() {} 32 33 // +checklocksignore 34 func (pl *packetBufferCircularList) StateLoad(stateSourceObject state.Source) { 35 stateSourceObject.Load(0, &pl.pbs) 36 stateSourceObject.Load(1, &pl.head) 37 stateSourceObject.Load(2, &pl.size) 38 } 39 40 func init() { 41 state.Register((*packetBufferCircularList)(nil)) 42 }