summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fs/binder/binder_state_autogen.go
blob: 195d9e00ba221582373c53bea18135ef68a01c76 (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
// automatically generated by stateify.

package binder

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

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

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

func (x *Proc) beforeSave() {}
func (x *Proc) save(m state.Map) {
	x.beforeSave()
	m.Save("bd", &x.bd)
	m.Save("task", &x.task)
	m.Save("mfp", &x.mfp)
	m.Save("mapped", &x.mapped)
}

func (x *Proc) afterLoad() {}
func (x *Proc) load(m state.Map) {
	m.Load("bd", &x.bd)
	m.Load("task", &x.task)
	m.Load("mfp", &x.mfp)
	m.Load("mapped", &x.mapped)
}

func init() {
	state.Register("binder.Device", (*Device)(nil), state.Fns{Save: (*Device).save, Load: (*Device).load})
	state.Register("binder.Proc", (*Proc)(nil), state.Fns{Save: (*Proc).save, Load: (*Proc).load})
}