github.com/metacubex/gvisor@v0.0.0-20240320004321-933faba989ec/pkg/sentry/devices/ttydev/ttydev_state_autogen.go (about) 1 // automatically generated by stateify. 2 3 package ttydev 4 5 import ( 6 "context" 7 8 "github.com/metacubex/gvisor/pkg/state" 9 ) 10 11 func (t *ttyDevice) StateTypeName() string { 12 return "pkg/sentry/devices/ttydev.ttyDevice" 13 } 14 15 func (t *ttyDevice) StateFields() []string { 16 return []string{} 17 } 18 19 func (t *ttyDevice) beforeSave() {} 20 21 // +checklocksignore 22 func (t *ttyDevice) StateSave(stateSinkObject state.Sink) { 23 t.beforeSave() 24 } 25 26 func (t *ttyDevice) afterLoad(context.Context) {} 27 28 // +checklocksignore 29 func (t *ttyDevice) StateLoad(ctx context.Context, stateSourceObject state.Source) { 30 } 31 32 func init() { 33 state.Register((*ttyDevice)(nil)) 34 }