Lines Matching refs:upid
1480 static long kernel_waitid(int which, pid_t upid, struct waitid_info *infop, in kernel_waitid() argument
1501 if (upid <= 0) in kernel_waitid()
1504 pid = find_get_pid(upid); in kernel_waitid()
1508 if (upid < 0) in kernel_waitid()
1511 if (upid) in kernel_waitid()
1512 pid = find_get_pid(upid); in kernel_waitid()
1518 if (upid < 0) in kernel_waitid()
1521 pid = pidfd_get_pid(upid, &f_flags); in kernel_waitid()
1546 SYSCALL_DEFINE5(waitid, int, which, pid_t, upid, struct siginfo __user *, in SYSCALL_DEFINE5() argument
1551 long err = kernel_waitid(which, upid, &info, options, ru ? &r : NULL); in SYSCALL_DEFINE5()
1579 long kernel_wait4(pid_t upid, int __user *stat_addr, int options, in kernel_wait4() argument
1592 if (upid == INT_MIN) in kernel_wait4()
1595 if (upid == -1) in kernel_wait4()
1597 else if (upid < 0) { in kernel_wait4()
1599 pid = find_get_pid(-upid); in kernel_wait4()
1600 } else if (upid == 0) { in kernel_wait4()
1605 pid = find_get_pid(upid); in kernel_wait4()
1638 SYSCALL_DEFINE4(wait4, pid_t, upid, int __user *, stat_addr, in SYSCALL_DEFINE4() argument
1642 long err = kernel_wait4(upid, stat_addr, options, ru ? &r : NULL); in SYSCALL_DEFINE4()