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

Method Create

pkg/cgroups/pids.go:36–41  ·  view source on GitHub ↗

Create the cgroup

(ctr *CgroupControl)

Source from the content-addressed store, hash-verified

34
35// Create the cgroup
36func (c *pidHandler) Create(ctr *CgroupControl) (bool, error) {
37 if ctr.cgroup2 {
38 return false, nil
39 }
40 return ctr.createCgroupDirectory(Pids)
41}
42
43// Destroy the cgroup
44func (c *pidHandler) Destroy(ctr *CgroupControl) error {

Callers

nothing calls this directly

Calls 1

createCgroupDirectoryMethod · 0.80

Tested by

no test coverage detected