MCPcopy Create free account
hub / github.com/containers/common / Create

Method Create

pkg/cgroups/cpu.go:61–66  ·  view source on GitHub ↗

Create the cgroup

(ctr *CgroupControl)

Source from the content-addressed store, hash-verified

59
60// Create the cgroup
61func (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
69func (c *cpuHandler) Destroy(ctr *CgroupControl) error {

Callers

nothing calls this directly

Calls 1

createCgroupDirectoryMethod · 0.80

Tested by

no test coverage detected