• Home
  • Raw
  • Download

Lines Matching refs:pid

243 	struct pid *thread_pid;  in release_task()
327 static int will_become_orphaned_pgrp(struct pid *pgrp, in will_become_orphaned_pgrp()
357 static bool has_stopped_jobs(struct pid *pgrp) in has_stopped_jobs()
377 struct pid *pgrp = task_pgrp(tsk); in kill_orphaned_pgrp()
946 if (unlikely(!tsk->pid)) in make_task_dead()
1042 pid_t pid; member
1051 struct pid *wo_pid;
1103 pid_t pid = task_pid_vnr(p); in wait_task_zombie() local
1223 infop->pid = pid; in wait_task_zombie()
1227 return pid; in wait_task_zombie()
1266 pid_t pid; in wait_task_stopped() local
1305 pid = task_pid_vnr(p); in wait_task_stopped()
1320 infop->pid = pid; in wait_task_stopped()
1323 return pid; in wait_task_stopped()
1335 pid_t pid; in wait_task_continued() local
1355 pid = task_pid_vnr(p); in wait_task_continued()
1368 infop->pid = pid; in wait_task_continued()
1372 return pid; in wait_task_continued()
1651 struct pid *pid = NULL; in kernel_waitid() local
1671 pid = find_get_pid(upid); in kernel_waitid()
1679 pid = find_get_pid(upid); in kernel_waitid()
1681 pid = get_task_pid(current, PIDTYPE_PGID); in kernel_waitid()
1688 pid = pidfd_get_pid(upid, &f_flags); in kernel_waitid()
1689 if (IS_ERR(pid)) in kernel_waitid()
1690 return PTR_ERR(pid); in kernel_waitid()
1698 wo.wo_pid = pid; in kernel_waitid()
1709 put_pid(pid); in kernel_waitid()
1736 unsafe_put_user(info.pid, &infop->si_pid, Efault); in SYSCALL_DEFINE5()
1750 struct pid *pid = NULL; in kernel_wait4() local
1766 pid = find_get_pid(-upid); in kernel_wait4()
1769 pid = get_task_pid(current, PIDTYPE_PGID); in kernel_wait4()
1772 pid = find_get_pid(upid); in kernel_wait4()
1776 wo.wo_pid = pid; in kernel_wait4()
1782 put_pid(pid); in kernel_wait4()
1789 int kernel_wait(pid_t pid, int *stat) in kernel_wait() argument
1793 .wo_pid = find_get_pid(pid), in kernel_wait()
1824 SYSCALL_DEFINE3(waitpid, pid_t, pid, int __user *, stat_addr, int, options) in SYSCALL_DEFINE3() argument
1826 return kernel_wait4(pid, stat_addr, options, NULL); in SYSCALL_DEFINE3()
1833 compat_pid_t, pid, in COMPAT_SYSCALL_DEFINE4() argument
1839 long err = kernel_wait4(pid, stat_addr, options, ru ? &r : NULL); in COMPAT_SYSCALL_DEFINE4()
1848 int, which, compat_pid_t, pid, in COMPAT_SYSCALL_DEFINE5() argument
1854 long err = kernel_waitid(which, pid, &info, options, uru ? &ru : NULL); in COMPAT_SYSCALL_DEFINE5()
1879 unsafe_put_user(info.pid, &infop->si_pid, Efault); in COMPAT_SYSCALL_DEFINE5()
1899 bool thread_group_exited(struct pid *pid) in thread_group_exited() argument
1905 task = pid_task(pid, PIDTYPE_PID); in thread_group_exited()