summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/kernel/signalfd/signalfd_state_autogen.go
blob: 66f09886da438c0c7d958a9f10a652af8b999a7e (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
// automatically generated by stateify.

package signalfd

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

func (x *SignalOperations) beforeSave() {}
func (x *SignalOperations) save(m state.Map) {
	x.beforeSave()
	m.Save("target", &x.target)
	m.Save("mask", &x.mask)
}

func (x *SignalOperations) afterLoad() {}
func (x *SignalOperations) load(m state.Map) {
	m.Load("target", &x.target)
	m.Load("mask", &x.mask)
}

func init() {
	state.Register("signalfd.SignalOperations", (*SignalOperations)(nil), state.Fns{Save: (*SignalOperations).save, Load: (*SignalOperations).load})
}