Lines Matching refs:pid
24 u32 pid;
41 struct pid *pid;
46 pid = find_pid_ns(common->pid, common->ns);
47 task = get_pid_task(pid, PIDTYPE_TGID);
51 *tid = common->pid;
52 common->pid_visiting = common->pid;
62 pid = find_pid_ns(common->pid_visiting, common->ns);
63 task = get_pid_task(pid, PIDTYPE_PID);
94 struct pid *pid;
97 if (*tid && *tid != common->pid)
100 pid = find_pid_ns(common->pid, common->ns);
101 if (pid) {
102 task = get_pid_task(pid, PIDTYPE_TGID);
103 *tid = common->pid;
120 pid = find_ge_pid(*tid, common->ns);
121 if (pid) {
122 *tid = pid_nr_ns(pid, common->ns);
123 task = get_pid_task(pid, PIDTYPE_PID);
211 struct pid *pid;
214 if ((!!linfo->task.tid + !!linfo->task.pid + !!linfo->task.pid_fd) > 1)
220 aux->task.pid = linfo->task.tid;
222 if (linfo->task.pid != 0) {
224 aux->task.pid = linfo->task.pid;
229 pid = pidfd_get_pid(linfo->task.pid_fd, &flags);
230 if (IS_ERR(pid))
231 return PTR_ERR(pid);
233 tgid = pid_nr_ns(pid, task_active_pid_ns(current));
234 aux->task.pid = tgid;
235 put_pid(pid);
394 common->pid = aux->task.pid;
678 info->iter.task.tid = aux->task.pid;
681 info->iter.task.pid = aux->task.pid;
693 seq_printf(seq, "tid:\t%u\n", aux->task.pid);
695 seq_printf(seq, "pid:\t%u\n", aux->task.pid);