MCPcopy Create free account
hub / github.com/containerd/cgroups / Values

Method Values

cgroup2/manager.go:100–120  ·  view source on GitHub ↗

Values returns the raw filenames and values that can be written to the unified hierarchy

()

Source from the content-addressed store, hash-verified

98// Values returns the raw filenames and values that
99// can be written to the unified hierarchy
100func (r *Resources) Values() (o []Value) {
101 if r.CPU != nil {
102 o = append(o, r.CPU.Values()...)
103 }
104 if r.Memory != nil {
105 o = append(o, r.Memory.Values()...)
106 }
107 if r.Pids != nil {
108 o = append(o, r.Pids.Values()...)
109 }
110 if r.IO != nil {
111 o = append(o, r.IO.Values()...)
112 }
113 if r.RDMA != nil {
114 o = append(o, r.RDMA.Values()...)
115 }
116 if r.HugeTlb != nil {
117 o = append(o, r.HugeTlb.Values()...)
118 }
119 return o
120}
121
122// EnabledControllers returns the list of all not nil resource controllers
123func (r *Resources) EnabledControllers() (c []string) {

Callers 2

setResourcesFunction · 0.45
freezeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected