Lines Matching refs:pid
30 __u32 pid; member
65 struct p_info * __find_process_pid(__u32 pid) in __find_process_pid() argument
72 if (pid < this->u.pid) in __find_process_pid()
74 else if (pid > this->u.pid) in __find_process_pid()
103 static void insert_pid(struct p_info *that, __u32 pid) in insert_pid() argument
113 if (pid < this->u.pid) in insert_pid()
115 else if (pid > this->u.pid) in insert_pid()
122 this->u.pid = pid; in insert_pid()
159 insert_pid(pip, pip->pid); in insert()
168 struct p_info *find_process(__u32 pid, char *name) in find_process() argument
172 if (pid != ((__u32)-1)) { in find_process()
173 if ((pip = __find_process_pid(pid)) != NULL) in find_process()
178 if (pip && pid != pip->pid) { in find_process()
186 insert_pid(pip, pid); in find_process()
199 sprintf(name, "pid%09u", pid); in find_process()
200 process_alloc(pid, name); in find_process()
201 return __find_process_pid(pid); in find_process()
207 void process_alloc(__u32 pid, char *name) in process_alloc() argument
209 struct p_info *pip = find_process(pid, name); in process_alloc()
213 pip->pid = pid; in process_alloc()