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

Method getSubsystem

cgroup1/cgroup.go:553–560  ·  view source on GitHub ↗
(n Name)

Source from the content-addressed store, hash-verified

551}
552
553func (c *cgroup) getSubsystem(n Name) Subsystem {
554 for _, s := range c.subsystems {
555 if s.Name() == n {
556 return s
557 }
558 }
559 return nil
560}
561
562func (c *cgroup) checkExists() {
563 for _, s := range pathers(c.subsystems) {

Callers 6

processesMethod · 0.95
FreezeMethod · 0.95
ThawMethod · 0.95
OOMEventFDMethod · 0.95
RegisterMemoryEventMethod · 0.95
StateMethod · 0.95

Calls 1

NameMethod · 0.65

Tested by

no test coverage detected