summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fs/dev/dev_state_autogen.go
blob: afe94ff8680fe7a77683e929d68fccc810c89768 (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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
// automatically generated by stateify.

package dev

import (
	"gvisor.googlesource.com/gvisor/pkg/state"
)

func (x *filesystem) beforeSave() {}
func (x *filesystem) save(m state.Map) {
	x.beforeSave()
}

func (x *filesystem) afterLoad() {}
func (x *filesystem) load(m state.Map) {
}

func (x *fullDevice) beforeSave() {}
func (x *fullDevice) save(m state.Map) {
	x.beforeSave()
	m.Save("InodeSimpleAttributes", &x.InodeSimpleAttributes)
}

func (x *fullDevice) afterLoad() {}
func (x *fullDevice) load(m state.Map) {
	m.Load("InodeSimpleAttributes", &x.InodeSimpleAttributes)
}

func (x *fullFileOperations) beforeSave() {}
func (x *fullFileOperations) save(m state.Map) {
	x.beforeSave()
}

func (x *fullFileOperations) afterLoad() {}
func (x *fullFileOperations) load(m state.Map) {
}

func (x *nullDevice) beforeSave() {}
func (x *nullDevice) save(m state.Map) {
	x.beforeSave()
	m.Save("InodeSimpleAttributes", &x.InodeSimpleAttributes)
}

func (x *nullDevice) afterLoad() {}
func (x *nullDevice) load(m state.Map) {
	m.Load("InodeSimpleAttributes", &x.InodeSimpleAttributes)
}

func (x *nullFileOperations) beforeSave() {}
func (x *nullFileOperations) save(m state.Map) {
	x.beforeSave()
}

func (x *nullFileOperations) afterLoad() {}
func (x *nullFileOperations) load(m state.Map) {
}

func (x *zeroDevice) beforeSave() {}
func (x *zeroDevice) save(m state.Map) {
	x.beforeSave()
	m.Save("nullDevice", &x.nullDevice)
}

func (x *zeroDevice) afterLoad() {}
func (x *zeroDevice) load(m state.Map) {
	m.Load("nullDevice", &x.nullDevice)
}

func (x *zeroFileOperations) beforeSave() {}
func (x *zeroFileOperations) save(m state.Map) {
	x.beforeSave()
}

func (x *zeroFileOperations) afterLoad() {}
func (x *zeroFileOperations) load(m state.Map) {
}

func (x *randomDevice) beforeSave() {}
func (x *randomDevice) save(m state.Map) {
	x.beforeSave()
	m.Save("InodeSimpleAttributes", &x.InodeSimpleAttributes)
}

func (x *randomDevice) afterLoad() {}
func (x *randomDevice) load(m state.Map) {
	m.Load("InodeSimpleAttributes", &x.InodeSimpleAttributes)
}

func (x *randomFileOperations) beforeSave() {}
func (x *randomFileOperations) save(m state.Map) {
	x.beforeSave()
}

func (x *randomFileOperations) afterLoad() {}
func (x *randomFileOperations) load(m state.Map) {
}

func init() {
	state.Register("dev.filesystem", (*filesystem)(nil), state.Fns{Save: (*filesystem).save, Load: (*filesystem).load})
	state.Register("dev.fullDevice", (*fullDevice)(nil), state.Fns{Save: (*fullDevice).save, Load: (*fullDevice).load})
	state.Register("dev.fullFileOperations", (*fullFileOperations)(nil), state.Fns{Save: (*fullFileOperations).save, Load: (*fullFileOperations).load})
	state.Register("dev.nullDevice", (*nullDevice)(nil), state.Fns{Save: (*nullDevice).save, Load: (*nullDevice).load})
	state.Register("dev.nullFileOperations", (*nullFileOperations)(nil), state.Fns{Save: (*nullFileOperations).save, Load: (*nullFileOperations).load})
	state.Register("dev.zeroDevice", (*zeroDevice)(nil), state.Fns{Save: (*zeroDevice).save, Load: (*zeroDevice).load})
	state.Register("dev.zeroFileOperations", (*zeroFileOperations)(nil), state.Fns{Save: (*zeroFileOperations).save, Load: (*zeroFileOperations).load})
	state.Register("dev.randomDevice", (*randomDevice)(nil), state.Fns{Save: (*randomDevice).save, Load: (*randomDevice).load})
	state.Register("dev.randomFileOperations", (*randomFileOperations)(nil), state.Fns{Save: (*randomFileOperations).save, Load: (*randomFileOperations).load})
}