process_read_write

Function get_proc_by_id

Source
pub fn get_proc_by_id(id: i32) -> Pid
Expand description

get_proc_by_id will take a process id as i32 and get the process with that id

ยงExamples

fn main() {
     let pid:i32 = 1234; // id of process 
     let pid = process_read_write::get_proc_by_id(pid);
}