Skip to main content

Module proc

Module proc 

Source
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§

ProcStatus
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 gid is None.
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>/status file.
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.