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

Method Add

cgroup1/control.go:61–61  ·  view source on GitHub ↗

Add adds a process to the cgroup (cgroup.procs). 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, ...Name)

Source from the content-addressed store, hash-verified

59 // subsystem names, the process is only added to those subsystems, provided that
60 // they are active in the targeted cgroup.
61 Add(Process, ...Name) error
62 // AddProc adds the process with the given id to the cgroup (cgroup.procs).
63 // Without additional arguments, the process with the given id is added to all
64 // the cgroup subsystems. When giving AddProc a list of subsystem names, the process

Callers 6

TestAddFunction · 0.65
TestListPidsFunction · 0.65
TestCreateSubCgroupFunction · 0.65
StatMethod · 0.65
MoveToMethod · 0.65

Implementers 1

cgroupcgroup1/cgroup.go

Calls

no outgoing calls

Tested by 4

TestAddFunction · 0.52
TestListPidsFunction · 0.52
TestCreateSubCgroupFunction · 0.52