github.com/metacubex/gvisor@v0.0.0-20240320004321-933faba989ec/pkg/sentry/fsimpl/dev/dev_state_autogen.go (about)

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