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

Method Create

pkg/cgroups/memory.go:25–30  ·  view source on GitHub ↗

Create the cgroup

(ctr *CgroupControl)

Source from the content-addressed store, hash-verified

23
24// Create the cgroup
25func (c *memHandler) Create(ctr *CgroupControl) (bool, error) {
26 if ctr.cgroup2 {
27 return false, nil
28 }
29 return ctr.createCgroupDirectory(Memory)
30}
31
32// Destroy the cgroup
33func (c *memHandler) Destroy(ctr *CgroupControl) error {

Callers

nothing calls this directly

Calls 1

createCgroupDirectoryMethod · 0.80

Tested by

no test coverage detected