package
1.9.0
Repository: https://github.com/containers/psgo.git
Documentation: pkg.go.dev

# Functions

GetPIDs extracts and returns all PIDs from /proc.
GetPIDsFromCgroup returns a strings slice of all pids listed in pid's pids cgroup.
ParseAttrCurrent returns the contents of /proc/$pid/attr/current of "?" if labeling is not supported on the host.
ParseCmdLine parses a /proc/$pid/cmdline file and returns a string slice.
ParsePIDNamespace returns the content of /proc/$pid/ns/pid.
ParseStat parses the /proc/$pid/stat file and returns a Stat.
ParseStatus parses the /proc/$pid/status file and returns a *Status.
ParseUserNamespace returns the content of /proc/$pid/ns/user.
ReadMappings reads the user namespace mappings at the specified path.

# Structs

Stat is a direct translation of a `/proc/[pid]/stat` file as described in the proc(5) manpage.
Status is a direct translation of a `/proc/[pid]/status`, which provides much of the information in /proc/[pid]/stat and /proc/[pid]/statm in a format that's easier for humans to parse.