Expand description
Procfs and process-introspection helpers.
These functions provide a small, Linux-oriented view into /proc for
callers that need process names, command lines, UIDs, or clock-tick
information without bringing in a broader process-inspection crate.
Structs§
- Proc
Status - A snapshot of process status information from procfs.
- Stat
- Filesystem identity derived from
stat(2).
Functions§
- chown
- Change the owner of a path while leaving the group unchanged when
gidisNone. - clock_
ticks_ per_ second - Return the number of clock ticks per second for the current system.
- effective_
uid - Return the effective UID of the current process.
- parse_
proc_ status - Parse the contents of a
/proc/<pid>/statusfile. - path_
lstat - Return identity metadata for a filesystem path without following symbolic links.
- path_
stat - Return identity metadata for a filesystem path, following symbolic links.
- path_
uid - Return the owning UID for a filesystem path.
- read_
proc_ cmdline - Read process command line from
/proc/<pid>/cmdline. - read_
proc_ cmdline_ at - Read process command line from an explicit procfs root.
- read_
proc_ status - Read process status from
/proc/<pid>/status. - read_
proc_ status_ at - Read process status from an explicit procfs root.
- stat
- Return identity metadata for
/proc/<pid>. - stat_at
- Return identity metadata for
/proc/<pid>under an explicit procfs root. - uid
- Return the owning UID for
/proc/<pid>. - uid_at
- Return the owning UID for
/proc/<pid>under an explicit procfs root.