Lines Matching refs:pid
19 static int64_t proc_create_file(const char *path, mode_t type, long pid);
119 struct process_control_block *pcb_t = process_find_pcb_by_pid(finode->pid); in procfs_open()
132 data_puts(fdata, ltoa(pcb_t->pid)); in procfs_open()
134 data_puts(fdata, ltoa(pcb_t->parent_pcb->pid)); in procfs_open()
392 finode->pid = 0; in procfs_mkdir()
446 int64_t procfs_register_pid(long pid) in procfs_register_pid() argument
452 int len = strlen(ltoa(pid)); in procfs_register_pid()
455 strcpy(tmp + 6, ltoa(pid)); in procfs_register_pid()
463 retval = proc_create_file(tmp, PROC_STATUS, pid); in procfs_register_pid()
476 static int64_t proc_create_file(const char *path, mode_t type, long pid) in proc_create_file() argument
486 finode->pid = pid; in proc_create_file()