summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fsimpl/devtmpfs/devtmpfs_state_autogen.go
blob: 87f77d00c4493688bd3f3e4eef757ee1a8574f8e (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
// automatically generated by stateify.

package devtmpfs

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

func (fst *FilesystemType) StateTypeName() string {
	return "pkg/sentry/fsimpl/devtmpfs.FilesystemType"
}

func (fst *FilesystemType) StateFields() []string {
	return []string{
		"initErr",
		"fs",
		"root",
	}
}

func (fst *FilesystemType) beforeSave() {}

func (fst *FilesystemType) StateSave(stateSinkObject state.Sink) {
	fst.beforeSave()
	stateSinkObject.Save(0, &fst.initErr)
	stateSinkObject.Save(1, &fst.fs)
	stateSinkObject.Save(2, &fst.root)
}

func (fst *FilesystemType) StateLoad(stateSourceObject state.Source) {
	stateSourceObject.Load(0, &fst.initErr)
	stateSourceObject.Load(1, &fst.fs)
	stateSourceObject.Load(2, &fst.root)
	stateSourceObject.AfterLoad(fst.afterLoad)
}

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