Home | History | Annotate | Download | only in btt

Lines Matching refs:pid

30 		__u32 pid;
65 struct p_info * __find_process_pid(__u32 pid)
72 if (pid < this->u.pid)
74 else if (pid > this->u.pid)
103 static void insert_pid(struct p_info *that, __u32 pid)
113 if (pid < this->u.pid)
115 else if (pid > this->u.pid)
122 this->u.pid = pid;
159 insert_pid(pip, pip->pid);
168 struct p_info *find_process(__u32 pid, char *name)
172 if (pid != ((__u32)-1)) {
173 if ((pip = __find_process_pid(pid)) != NULL)
178 if (pip && pid != pip->pid) {
181 * as another, but a different PID.
183 * We'll store a reference in the PID
186 insert_pid(pip, pid);
192 * We're here because we have a pid, and no name, but
195 * We'll craft one using the pid...
199 sprintf(name, "pid%09u", pid);
200 process_alloc(pid, name);
201 return __find_process_pid(pid);
207 void process_alloc(__u32 pid, char *name)
209 struct p_info *pip = find_process(pid, name);
213 pip->pid = pid;