Lines Matching refs:pid
22 u32 pid;
39 struct pid *pid;
44 pid = find_pid_ns(common->pid, common->ns);
45 if (!pid)
48 task = get_pid_task(pid, PIDTYPE_TGID);
52 *tid = common->pid;
53 common->pid_visiting = common->pid;
63 pid = find_pid_ns(common->pid_visiting, common->ns);
64 task = get_pid_task(pid, PIDTYPE_PID);
69 pid = find_pid_ns(common->pid_visiting, common->ns);
70 if (!pid)
73 task = get_pid_task(pid, PIDTYPE_PID);
90 if (!*tid || *tid == common->pid) {
114 struct pid *pid;
117 if (*tid && *tid != common->pid)
120 pid = find_pid_ns(common->pid, common->ns);
121 if (pid) {
122 task = get_pid_task(pid, PIDTYPE_TGID);
123 *tid = common->pid;
140 pid = find_ge_pid(*tid, common->ns);
141 if (pid) {
142 *tid = pid_nr_ns(pid, common->ns);
143 task = get_pid_task(pid, PIDTYPE_PID);
231 struct pid *pid;
234 if ((!!linfo->task.tid + !!linfo->task.pid + !!linfo->task.pid_fd) > 1)
240 aux->task.pid = linfo->task.tid;
242 if (linfo->task.pid != 0) {
244 aux->task.pid = linfo->task.pid;
249 pid = pidfd_get_pid(linfo->task.pid_fd, &flags);
250 if (IS_ERR(pid))
251 return PTR_ERR(pid);
253 tgid = pid_nr_ns(pid, task_active_pid_ns(current));
254 aux->task.pid = tgid;
255 put_pid(pid);
416 common->pid = aux->task.pid;
700 info->iter.task.tid = aux->task.pid;
703 info->iter.task.pid = aux->task.pid;
715 seq_printf(seq, "tid:\t%u\n", aux->task.pid);
717 seq_printf(seq, "pid:\t%u\n", aux->task.pid);