Searched refs:pidfd (Results 26 - 37 of 37) sorted by relevance

12

/linux-master/arch/nios2/kernel/
H A Dprocess.c259 .pidfd = parent_tidptr,
/linux-master/arch/m68k/kernel/
H A Dprocess.c121 .pidfd = (int __user *)regs->d3,
/linux-master/fs/
H A Dpidfs.c15 #include <uapi/linux/pidfd.h>
21 * pidfd_show_fdinfo - print information about a pidfd
23 * @f: file referencing a pidfd
26 * This function will print the pid that a given pidfd refers to in the
35 * the pid of a given pidfd refers to for all descendant pid namespaces
44 * obvious when sending around a pidfd between pid namespaces from a
50 * - create a process with a pidfd in ns1
51 * - send pidfd from ns1 to ns2
52 * - read /proc/self/fdinfo/<pidfd> and observe that both Pid and NSpid
207 return dynamic_dname(buffer, buflen, "pidfd
[all...]
/linux-master/include/linux/
H A Dpid.h65 /* wait queue for pidfd notifications */
77 struct task_struct *pidfd_get_task(int pidfd, unsigned int *flags);
H A Dsyscalls.h818 asmlinkage long sys_process_madvise(int pidfd, const struct iovec __user *vec,
820 asmlinkage long sys_process_mrelease(int pidfd, unsigned int flags);
945 asmlinkage long sys_pidfd_send_signal(int pidfd, int sig,
948 asmlinkage long sys_pidfd_getfd(int pidfd, int fd, unsigned int flags);
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dbpf_iter.c290 int pidfd; local
292 pidfd = sys_pidfd_open(getpid(), 0);
293 if (!ASSERT_GT(pidfd, 0, "sys_pidfd_open"))
297 linfo.task.pid_fd = pidfd;
303 close(pidfd);
/linux-master/arch/x86/kernel/
H A Dsys_ia32.c246 .pidfd = parent_tidptr,
/linux-master/tools/testing/selftests/
H A DMakefile69 TARGETS += pidfd
/linux-master/net/core/
H A Dsock.c1770 int pidfd; local
1772 if (len > sizeof(pidfd))
1773 len = sizeof(pidfd);
1782 pidfd = pidfd_prepare(peer_pid, 0, &pidfd_file);
1784 if (pidfd < 0)
1785 return pidfd;
1787 if (copy_to_sockptr(optval, &pidfd, len) ||
1789 put_unused_fd(pidfd);
1795 fd_install(pidfd, pidfd_file);
/linux-master/mm/
H A Doom_kill.c1200 SYSCALL_DEFINE2(process_mrelease, int, pidfd, unsigned int, flags)
1213 task = pidfd_get_task(pidfd, &f_flags);
H A Dmadvise.c1444 SYSCALL_DEFINE5(process_madvise, int, pidfd, const struct iovec __user *, vec,
1465 task = pidfd_get_task(pidfd, &f_flags);
/linux-master/kernel/
H A Dsignal.c50 #include <uapi/linux/pidfd.h>
3888 * sys_pidfd_send_signal - Signal a process through a pidfd
3889 * @pidfd: file descriptor of the process
3897 * of @pidfd.
3901 SYSCALL_DEFINE4(pidfd_send_signal, int, pidfd, int, sig,
3918 f = fdget(pidfd);
3922 /* Is this a pidfd? */
3935 /* Infer scope from the type of pidfd. */

Completed in 193 milliseconds

12