Skip to main content

parse_proc_cmdline

Function parse_proc_cmdline 

Source
pub fn parse_proc_cmdline(pid: u32, comm: &str, bytes: &[u8]) -> ProcessCmdline
Expand description

Parse a /proc/<pid>/cmdline byte slice (NUL-separated fields) into a ProcessCmdline.

The first NUL-delimited field becomes exe; subsequent fields become args. cmdline_raw is all fields joined with spaces.