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

Method getCgroupv1Path

pkg/cgroups/cgroups.go:247–249  ·  view source on GitHub ↗

getCgroupv1Path is a helper function to get the cgroup v1 path

(name string)

Source from the content-addressed store, hash-verified

245
246// getCgroupv1Path is a helper function to get the cgroup v1 path
247func (c *CgroupControl) getCgroupv1Path(name string) string {
248 return filepath.Join(cgroupRoot, name, c.path)
249}
250
251// createCgroupv2Path creates the cgroupv2 path and enables all the available controllers
252func createCgroupv2Path(path string) (deferredError error) {

Callers 15

initializeMethod · 0.95
createCgroupDirectoryMethod · 0.95
LoadFunction · 0.95
DeleteByPathConnMethod · 0.95
AddPidMethod · 0.95
readAcctFunction · 0.80
readAcctListFunction · 0.80
DestroyMethod · 0.80
CreateMethod · 0.80
DestroyMethod · 0.80
DestroyMethod · 0.80
StatMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected