pub fn parse_stat(buf: &[u8]) -> Option<(u32, CommBuf, StatFields)>
Parse /proc/<pid>/stat.
/proc/<pid>/stat
Returns None when the buffer is malformed. Note the trap: comm may contain spaces, ( and ), so we anchor on the last ).
None
comm
(
)