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