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

Method AddProc

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

AddProc adds the process with the given id to the cgroup (cgroup.procs). Without additional arguments, the process with the given id is added to all the cgroup subsystems. When giving AddProc a list of subsystem names, the process id is only added to those subsystems, provided that they are active i

(uint64, ...Name)

Source from the content-addressed store, hash-verified

65 // id is only added to those subsystems, provided that they are active in the targeted
66 // cgroup.
67 AddProc(uint64, ...Name) error
68 // AddTask adds a process to the cgroup (tasks). Without additional arguments, the
69 // task is added to all the cgroup subsystems. When giving AddTask a list of subsystem
70 // names, the task is only added to those subsystems, provided that they are active in

Callers 1

MoveToMethod · 0.65

Implementers 1

cgroupcgroup1/cgroup.go

Calls

no outgoing calls

Tested by

no test coverage detected