github.com/metacubex/gvisor@v0.0.0-20240320004321-933faba989ec/pkg/sentry/kernel/kernel_impl_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 (p *pidNamespaceData) StateTypeName() string {
    15  	return "pkg/sentry/kernel.pidNamespaceData"
    16  }
    17  
    18  func (p *pidNamespaceData) StateFields() []string {
    19  	return []string{}
    20  }
    21  
    22  func (p *pidNamespaceData) beforeSave() {}
    23  
    24  // +checklocksignore
    25  func (p *pidNamespaceData) StateSave(stateSinkObject state.Sink) {
    26  	p.beforeSave()
    27  }
    28  
    29  func (p *pidNamespaceData) afterLoad(context.Context) {}
    30  
    31  // +checklocksignore
    32  func (p *pidNamespaceData) StateLoad(ctx context.Context, stateSourceObject state.Source) {
    33  }
    34  
    35  func init() {
    36  	state.Register((*pidNamespaceData)(nil))
    37  }