Skip to main content

parse_proc_entry

Function parse_proc_entry 

Source
pub fn parse_proc_entry(pid: u32) -> Option<(PidNode, ProcInfo)>
Expand description

Parse /proc/{pid}/status into a (PidNode, ProcInfo) pair.

Returns None if the process doesn’t exist or the status file can’t be read.