github.com/nicocha30/gvisor-ligolo@v0.0.0-20230726075806-989fa2c0a413/pkg/sentry/kernel/auth/auth_unsafe_state_autogen.go (about) 1 // automatically generated by stateify. 2 3 package auth 4 5 import ( 6 "github.com/nicocha30/gvisor-ligolo/pkg/state" 7 ) 8 9 func (p *AtomicPtrCredentials) StateTypeName() string { 10 return "pkg/sentry/kernel/auth.AtomicPtrCredentials" 11 } 12 13 func (p *AtomicPtrCredentials) StateFields() []string { 14 return []string{ 15 "ptr", 16 } 17 } 18 19 func (p *AtomicPtrCredentials) beforeSave() {} 20 21 // +checklocksignore 22 func (p *AtomicPtrCredentials) StateSave(stateSinkObject state.Sink) { 23 p.beforeSave() 24 var ptrValue *Credentials 25 ptrValue = p.savePtr() 26 stateSinkObject.SaveValue(0, ptrValue) 27 } 28 29 func (p *AtomicPtrCredentials) afterLoad() {} 30 31 // +checklocksignore 32 func (p *AtomicPtrCredentials) StateLoad(stateSourceObject state.Source) { 33 stateSourceObject.LoadValue(0, new(*Credentials), func(y any) { p.loadPtr(y.(*Credentials)) }) 34 } 35 36 func init() { 37 state.Register((*AtomicPtrCredentials)(nil)) 38 }