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

Method Add

cgroup1/cgroup.go:178–180  ·  view source on GitHub ↗

Add moves the provided process into the new cgroup. Without additional arguments, the process is added to all the cgroup subsystems. When giving Add a list of subsystem names, the process is only added to those subsystems, provided that they are active in the targeted cgroup.

(process Process, subsystems ...Name)

Source from the content-addressed store, hash-verified

176// When giving Add a list of subsystem names, the process is only added to those
177// subsystems, provided that they are active in the targeted cgroup.
178func (c *cgroup) Add(process Process, subsystems ...Name) error {
179 return c.add(process, cgroupProcs, subsystems...)
180}
181
182// AddProc moves the provided process id into the new cgroup.
183// Without additional arguments, the process with the given id is added to all

Callers

nothing calls this directly

Calls 1

addMethod · 0.95

Tested by

no test coverage detected