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)
| 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. |
| 178 | func (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 |