MCPcopy Create free account
hub / github.com/containerd/cgroups / New

Method New

cgroup1/control.go:56–56  ·  view source on GitHub ↗

New creates a new cgroup under the calling cgroup

(string, *specs.LinuxResources)

Source from the content-addressed store, hash-verified

54type Cgroup interface {
55 // New creates a new cgroup under the calling cgroup
56 New(string, *specs.LinuxResources) (Cgroup, error)
57 // Add adds a process to the cgroup (cgroup.procs). Without additional arguments,
58 // the process is added to all the cgroup subsystems. When giving Add a list of
59 // subsystem names, the process is only added to those subsystems, provided that

Callers 9

NewManagerFunction · 0.65
NewChildMethod · 0.65
appendDeviceMethod · 0.65
errors.goFile · 0.65
paths.goFile · 0.65
opts.goFile · 0.65
TestCreateSubCgroupFunction · 0.65
errors.goFile · 0.65

Implementers 1

cgroupcgroup1/cgroup.go

Calls

no outgoing calls

Tested by 1

TestCreateSubCgroupFunction · 0.52