MCPcopy Create free account
hub / github.com/prometheus/procfs / AllProcs

Function AllProcs

proc.go:68–74  ·  view source on GitHub ↗

AllProcs returns a list of all currently available processes under /proc.

()

Source from the content-addressed store, hash-verified

66
67// AllProcs returns a list of all currently available processes under /proc.
68func AllProcs() (Procs, error) {
69 fs, err := NewFS(DefaultMountPoint)
70 if err != nil {
71 return Procs{}, err
72 }
73 return fs.AllProcs()
74}
75
76// Self returns a process for the current process.
77func (fs FS) Self() (Proc, error) {

Callers

nothing calls this directly

Calls 2

AllProcsMethod · 0.95
NewFSFunction · 0.70

Tested by

no test coverage detected