blob: 72503d1d72d8d20068bee38dcf757d7842af2e9b (
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
|
// automatically generated by stateify.
package limits
import (
"gvisor.dev/gvisor/pkg/state"
)
func (x *Limit) StateTypeName() string {
return "pkg/sentry/limits.Limit"
}
func (x *Limit) StateFields() []string {
return []string{
"Cur",
"Max",
}
}
func (x *Limit) beforeSave() {}
func (x *Limit) StateSave(m state.Sink) {
x.beforeSave()
m.Save(0, &x.Cur)
m.Save(1, &x.Max)
}
func (x *Limit) afterLoad() {}
func (x *Limit) StateLoad(m state.Source) {
m.Load(0, &x.Cur)
m.Load(1, &x.Max)
}
func (x *LimitSet) StateTypeName() string {
return "pkg/sentry/limits.LimitSet"
}
func (x *LimitSet) StateFields() []string {
return []string{
"data",
}
}
func (x *LimitSet) beforeSave() {}
func (x *LimitSet) StateSave(m state.Sink) {
x.beforeSave()
m.Save(0, &x.data)
}
func (x *LimitSet) afterLoad() {}
func (x *LimitSet) StateLoad(m state.Source) {
m.Load(0, &x.data)
}
func init() {
state.Register((*Limit)(nil))
state.Register((*LimitSet)(nil))
}
|