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

Method Processes

cgroup1/cgroup.go:375–382  ·  view source on GitHub ↗

Processes returns the processes running inside the cgroup along with the subsystem used, pid, and path

(subsystem Name, recursive bool)

Source from the content-addressed store, hash-verified

373// Processes returns the processes running inside the cgroup along
374// with the subsystem used, pid, and path
375func (c *cgroup) Processes(subsystem Name, recursive bool) ([]Process, error) {
376 c.mu.Lock()
377 defer c.mu.Unlock()
378 if c.err != nil {
379 return nil, c.err
380 }
381 return c.processes(subsystem, recursive, cgroupProcs)
382}
383
384// Tasks returns the tasks running inside the cgroup along
385// with the subsystem used, pid, and path

Callers

nothing calls this directly

Calls 1

processesMethod · 0.95

Tested by

no test coverage detected