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

Function toggleFunc

cgroup2/manager.go:325–331  ·  view source on GitHub ↗
(controllers []string, prefix string)

Source from the content-addressed store, hash-verified

323)
324
325func toggleFunc(controllers []string, prefix string) []string {
326 out := make([]string, len(controllers))
327 for i, c := range controllers {
328 out[i] = prefix + c
329 }
330 return out
331}
332
333func (c *Manager) ToggleControllers(controllers []string, t ControllerToggle) error {
334 // when c.path is like /foo/bar/baz, the following files need to be written:

Callers 1

writeSubtreeControlMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…