Expand description
This module provides utilities about processing process information(e.g. comm, argv, envp).
Structs§
Enums§
- Cgroup
Error - Error variants for cgroup resolution.
- Cgroup
Info - Information about the cgroup of a process at the time of exec.
- Cred
Inspect Error - Fallible
- Interpreter
Functions§
- cached_
str - cached_
string - diff_
env - parse_
env_ entry - parse_
failiable_ envp - parse_
proc_ cgroup - Parse the contents of
/proc/pid/cgroup. For cgroupv2: the line is0::<path>. For cgroupv1: hierarchy-ID is non-zero and controller-list is non-empty. - read_
argv - read_
cgroup - Read the cgroup path from
/proc/{pid}/cgroup. ReturnsCgroupInfo::V2if a cgroupv2 entry is found,CgroupInfo::V1Onlyif only v1 entries exist. - read_
comm - read_
cwd - read_
exe - read_fd
- read_
fdinfo - Read /proc/{pid}/fdinfo/{fd} to get more information about the file descriptor.
- read_
fds - read_
interpreter - read_
interpreter_ recursive - read_
status - resolve_
cgroup_ id - Resolve a cgroupv2 ID (inode number) to its path by walking
/sys/fs/cgroup. ReturnsCgroupInfo::V2if the cgroup is found,CgroupInfo::Errorotherwise.