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

Function setResources

cgroup2/manager.go:255–265  ·  view source on GitHub ↗
(path string, resources *Resources)

Source from the content-addressed store, hash-verified

253}
254
255func setResources(path string, resources *Resources) error {
256 if resources != nil {
257 if err := writeValues(path, resources.Values()); err != nil {
258 return err
259 }
260 if err := setDevices(path, resources.Devices); err != nil {
261 return err
262 }
263 }
264 return nil
265}
266
267// CgroupType represents the types a cgroup can be.
268type CgroupType string

Callers 3

NewManagerFunction · 0.85
UpdateMethod · 0.85
NewChildMethod · 0.85

Calls 3

writeValuesFunction · 0.85
setDevicesFunction · 0.85
ValuesMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…