Lines Matching refs:pid
55 pid: i64, field
119 let pid: &i64 = &self.fdata.pid; in open_status() localVariable
120 let pcb = unsafe { process_find_pcb_by_pid(*pid).as_mut() }; in open_status()
124 pid in open_status()
149 pdata.append(&mut format!("\npid:\t{}", pcb.pid).as_bytes().to_owned()); in open_status()
151 &mut format!("\nPpid:\t{}", unsafe { *pcb.parent_pcb }.pid) in open_status()
263 pid: 0, in new()
283 pub fn register_pid(&self, pid: i64) -> Result<(), SystemError> { in register_pid()
287 let _pf: Arc<dyn IndexNode> = proc.create(&pid.to_string(), FileType::Dir, 0o777)?; in register_pid()
295 _sf.0.lock().fdata.pid = pid; in register_pid()
305 pub fn unregister_pid(&self, pid: i64) -> Result<(), SystemError> { in unregister_pid()
309 let pid_dir: Arc<dyn IndexNode> = proc.find(&format!("{}", pid))?; in unregister_pid()
317 proc.unlink(&format!("{}", pid))?; in unregister_pid()
514 pid: 0, in create_with_data()
658 pub extern "C" fn rs_procfs_register_pid(pid: pid_t) -> u64 { in rs_procfs_register_pid()
659 let r = procfs_register_pid(pid); in rs_procfs_register_pid()
668 pub fn procfs_register_pid(pid: pid_t) -> Result<(), SystemError> { in procfs_register_pid()
678 procfs.register_pid(pid)?; in procfs_register_pid()
684 pub extern "C" fn rs_procfs_unregister_pid(pid: pid_t) -> u64 { in rs_procfs_unregister_pid()
685 let r = procfs_unregister_pid(pid); in rs_procfs_unregister_pid()
694 pub fn procfs_unregister_pid(pid: pid_t) -> Result<(), SystemError> { in procfs_unregister_pid()
705 return procfs.unregister_pid(pid); in procfs_unregister_pid()