github.com/metacubex/gvisor@v0.0.0-20240320004321-933faba989ec/pkg/sentry/platform/systrap/usertrap/usertrap_arm64_state_autogen.go (about)

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