summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/socket/unix/unix_state_autogen.go
blob: 7553739418983a2d89ade9052a13b166e3bffdba (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
// automatically generated by stateify.

package unix

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

func (x *SocketOperations) beforeSave() {}
func (x *SocketOperations) save(m state.Map) {
	x.beforeSave()
	m.Save("AtomicRefCount", &x.AtomicRefCount)
	m.Save("SendReceiveTimeout", &x.SendReceiveTimeout)
	m.Save("ep", &x.ep)
	m.Save("stype", &x.stype)
}

func (x *SocketOperations) afterLoad() {}
func (x *SocketOperations) load(m state.Map) {
	m.Load("AtomicRefCount", &x.AtomicRefCount)
	m.Load("SendReceiveTimeout", &x.SendReceiveTimeout)
	m.Load("ep", &x.ep)
	m.Load("stype", &x.stype)
}

func init() {
	state.Register("pkg/sentry/socket/unix.SocketOperations", (*SocketOperations)(nil), state.Fns{Save: (*SocketOperations).save, Load: (*SocketOperations).load})
}