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

Method AddTask

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

AddTask adds a process to the cgroup (tasks). Without additional arguments, the task is added to all the cgroup subsystems. When giving AddTask a list of subsystem names, the task 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

70 // names, the task is only added to those subsystems, provided that they are active in
71 // the targeted cgroup.
72 AddTask(Process, ...Name) error
73 // Delete removes the cgroup as a whole
74 Delete() error
75 // MoveTo moves all the processes under the calling cgroup to the provided one

Callers 4

TestAddTaskFunction · 0.65
TestListTasksPidsFunction · 0.65
TestCreateSubCgroupFunction · 0.65

Implementers 1

cgroupcgroup1/cgroup.go

Calls

no outgoing calls

Tested by 4

TestAddTaskFunction · 0.52
TestListTasksPidsFunction · 0.52
TestCreateSubCgroupFunction · 0.52