summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fsimpl/eventfd/eventfd_state_autogen.go
blob: 3af030742291400685b8466038a82e6a18928057 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// automatically generated by stateify.

package eventfd

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

func (efd *EventFileDescription) StateTypeName() string {
	return "pkg/sentry/fsimpl/eventfd.EventFileDescription"
}

func (efd *EventFileDescription) StateFields() []string {
	return []string{
		"vfsfd",
		"FileDescriptionDefaultImpl",
		"DentryMetadataFileDescriptionImpl",
		"NoLockFD",
		"queue",
		"val",
		"semMode",
		"hostfd",
	}
}

func (efd *EventFileDescription) beforeSave() {}

func (efd *EventFileDescription) StateSave(stateSinkObject state.Sink) {
	efd.beforeSave()
	stateSinkObject.Save(0, &efd.vfsfd)
	stateSinkObject.Save(1, &efd.FileDescriptionDefaultImpl)
	stateSinkObject.Save(2, &efd.DentryMetadataFileDescriptionImpl)
	stateSinkObject.Save(3, &efd.NoLockFD)
	stateSinkObject.Save(4, &efd.queue)
	stateSinkObject.Save(5, &efd.val)
	stateSinkObject.Save(6, &efd.semMode)
	stateSinkObject.Save(7, &efd.hostfd)
}

func (efd *EventFileDescription) afterLoad() {}

func (efd *EventFileDescription) StateLoad(stateSourceObject state.Source) {
	stateSourceObject.Load(0, &efd.vfsfd)
	stateSourceObject.Load(1, &efd.FileDescriptionDefaultImpl)
	stateSourceObject.Load(2, &efd.DentryMetadataFileDescriptionImpl)
	stateSourceObject.Load(3, &efd.NoLockFD)
	stateSourceObject.Load(4, &efd.queue)
	stateSourceObject.Load(5, &efd.val)
	stateSourceObject.Load(6, &efd.semMode)
	stateSourceObject.Load(7, &efd.hostfd)
}

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