Create the cgroup
(ctr *CgroupControl)
| 59 | |
| 60 | // Create the cgroup |
| 61 | func (c *cpuHandler) Create(ctr *CgroupControl) (bool, error) { |
| 62 | if ctr.cgroup2 { |
| 63 | return false, nil |
| 64 | } |
| 65 | return ctr.createCgroupDirectory(CPU) |
| 66 | } |
| 67 | |
| 68 | // Destroy the cgroup |
| 69 | func (c *cpuHandler) Destroy(ctr *CgroupControl) error { |
nothing calls this directly
no test coverage detected