Skip to main content

read_proc_comm

Function read_proc_comm 

Source
pub fn read_proc_comm(pid: u32) -> Option<String>
Expand description

Read the command name for a PID from /proc/{pid}/comm.

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

§Internal Usage

This function is used internally by ops::resolve and ops::get_cmd as a fallback when the command name is not in the store.