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.

Functions§

clock_ticks_per_second
Return the number of clock ticks per second for the current system.
parse_proc_status
Parse the contents of a /proc/<pid>/status file.
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.