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

Function Systemd

cgroup1/systemd.go:40–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38)
39
40func Systemd() ([]Subsystem, error) {
41 root, err := v1MountPoint()
42 if err != nil {
43 return nil, err
44 }
45 defaultSubsystems, err := defaults(root)
46 if err != nil {
47 return nil, err
48 }
49 s, err := NewSystemd(root)
50 if err != nil {
51 return nil, err
52 }
53 // make sure the systemd controller is added first
54 return append([]Subsystem{s}, defaultSubsystems...), nil
55}
56
57func Slice(slice, name string) Path {
58 if slice == "" {

Callers

nothing calls this directly

Calls 3

v1MountPointFunction · 0.85
defaultsFunction · 0.85
NewSystemdFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…