summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/socket/unix/unix_state_autogen.go
blob: 86f734156dc10aa172b3022079862dc4e81d9096 (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("unix.SocketOperations", (*SocketOperations)(nil), state.Fns{Save: (*SocketOperations).save, Load: (*SocketOperations).load})
}