summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/kernel/signalfd/signalfd_state_autogen.go
blob: ad2622f276bb4b2081832fcc1eefeffb765abbe5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// automatically generated by stateify.

package signalfd

import (
	"gvisor.dev/gvisor/pkg/state"
)

func (s *SignalOperations) StateTypeName() string {
	return "pkg/sentry/kernel/signalfd.SignalOperations"
}

func (s *SignalOperations) StateFields() []string {
	return []string{
		"target",
		"mask",
	}
}

func (s *SignalOperations) beforeSave() {}

// +checklocksignore
func (s *SignalOperations) StateSave(stateSinkObject state.Sink) {
	s.beforeSave()
	stateSinkObject.Save(0, &s.target)
	stateSinkObject.Save(1, &s.mask)
}

func (s *SignalOperations) afterLoad() {}

// +checklocksignore
func (s *SignalOperations) StateLoad(stateSourceObject state.Source) {
	stateSourceObject.Load(0, &s.target)
	stateSourceObject.Load(1, &s.mask)
}

func init() {
	state.Register((*SignalOperations)(nil))
}