• Home
  • Raw
  • Download

Lines Matching refs:pid

1907 init_task_pid(struct task_struct *task, enum pid_type type, struct pid *pid)  in init_task_pid()  argument
1910 task->thread_pid = pid; in init_task_pid()
1912 task->signal->pids[type] = pid; in init_task_pid()
1936 struct pid *pidfd_pid(const struct file *file) in pidfd_pid()
1946 struct pid *pid = file->private_data; in pidfd_release() local
1949 put_pid(pid); in pidfd_release()
1991 struct pid *pid = f->private_data; in pidfd_show_fdinfo() local
1995 if (likely(pid_has_task(pid, PIDTYPE_PID))) { in pidfd_show_fdinfo()
1997 nr = pid_nr_ns(pid, ns); in pidfd_show_fdinfo()
2012 for (i = ns->level + 1; i <= pid->level; i++) in pidfd_show_fdinfo()
2013 seq_put_decimal_ll(m, "\t", pid->numbers[i].nr); in pidfd_show_fdinfo()
2025 struct pid *pid = file->private_data; in pidfd_poll() local
2028 poll_wait(file, &pid->wait_pidfd, pts); in pidfd_poll()
2035 if (thread_group_exited(pid)) in pidfd_poll()
2104 struct pid *pid, in copy_process() argument
2385 if (pid != &init_struct_pid) { in copy_process()
2386 pid = alloc_pid(p->nsproxy->pid_ns_for_children, args->set_tid, in copy_process()
2388 if (IS_ERR(pid)) { in copy_process()
2389 retval = PTR_ERR(pid); in copy_process()
2406 pidfile = anon_inode_getfile("[pidfd]", &pidfd_fops, pid, in copy_process()
2413 get_pid(pid); /* held by pidfile now */ in copy_process()
2443 p->pid = pid_nr(pid); in copy_process()
2449 p->tgid = p->pid; in copy_process()
2531 if (unlikely(!(ns_of_pid(pid)->pid_allocated & PIDNS_ADDING))) { in copy_process()
2551 if (likely(p->pid)) { in copy_process()
2554 init_task_pid(p, PIDTYPE_PID, pid); in copy_process()
2556 init_task_pid(p, PIDTYPE_TGID, pid); in copy_process()
2560 if (is_child_reaper(pid)) { in copy_process()
2561 ns_of_pid(pid)->child_reaper = p; in copy_process()
2626 if (pid != &init_struct_pid) in copy_process()
2627 free_pid(pid); in copy_process()
2749 struct pid *pid; in kernel_clone() local
2800 pid = get_task_pid(p, PIDTYPE_PID); in kernel_clone()
2801 nr = pid_vnr(pid); in kernel_clone()
2823 ptrace_event_pid(trace, pid); in kernel_clone()
2827 ptrace_event_pid(PTRACE_EVENT_VFORK_DONE, pid); in kernel_clone()
2830 put_pid(pid); in kernel_clone()