Home
last modified time | relevance | path

Searched defs:pidfd (Results 1 – 25 of 25) sorted by relevance

/linux-6.6.21/tools/testing/selftests/pidfd/
Dpidfd_test.c33 static pid_t pidfd_clone(int flags, int *pidfd, int (*fn)(void *)) in pidfd_clone()
59 int pidfd, ret; in test_pidfd_send_signal_simple_success() local
94 int pidfd, ret, saved_errno; in test_pidfd_send_signal_exited_fail() local
201 int pidfd = -1; in test_pidfd_send_signal_recycled_pid_fail() local
353 int pidfd, ret; in test_pidfd_send_signal_syscall_support() local
395 static void poll_pidfd(const char *test_name, int pidfd) in poll_pidfd()
445 int pid, pidfd = 0; in test_pidfd_poll_exec() local
511 int pid, pidfd = 0; in test_pidfd_poll_leader_exit() local
Dpidfd_wait.c42 int pidfd = -1; in TEST() local
90 int pidfd = -1; in TEST() local
151 int pidfd; in TEST() local
Dpidfd_open_test.c86 static pid_t get_pid_from_fdinfo_file(int pidfd, const char *key, size_t keylen) in get_pid_from_fdinfo_file()
123 int pidfd = -1, ret = 1; in main() local
Dpidfd.h101 static inline int sys_pidfd_send_signal(int pidfd, int sig, siginfo_t *info, in sys_pidfd_send_signal()
107 static inline int sys_pidfd_getfd(int pidfd, int fd, int flags) in sys_pidfd_getfd()
Dpidfd_fdinfo_test.c164 static int verify_fdinfo(int pidfd, struct error *err, const char *prefix, in verify_fdinfo()
219 int pidfd; in child_fdinfo_nspid_test() local
Dpidfd_poll_test.c48 int pidfd; in main() local
Dpidfd_setns_test.c55 int pidfd; in FIXTURE() local
75 pid_t create_child(int *pidfd, unsigned flags) in create_child()
Dpidfd_getfd_test.c126 int pidfd; in FIXTURE() local
/linux-6.6.21/samples/pidfd/
Dpidfd-metadata.c34 static pid_t pidfd_clone(int flags, int *pidfd) in pidfd_clone()
46 static inline int sys_pidfd_send_signal(int pidfd, int sig, siginfo_t *info, in sys_pidfd_send_signal()
52 static int pidfd_metadata_fd(pid_t pid, int pidfd) in pidfd_metadata_fd()
86 int pidfd = -1, ret = EXIT_FAILURE; in main() local
/linux-6.6.21/tools/testing/selftests/mm/
Dmrelease_test.c55 static void run_negative_tests(int pidfd) in run_negative_tests()
89 int pipefd[2], pidfd; in main() local
/linux-6.6.21/kernel/
Dpid.c563 struct task_struct *pidfd_get_task(int pidfd, unsigned int *flags) in pidfd_get_task()
600 int pidfd; in pidfd_create() local
725 SYSCALL_DEFINE3(pidfd_getfd, int, pidfd, int, fd, in SYSCALL_DEFINE3() argument
Dfork.c2131 int pidfd; in __pidfd_prepare() local
2246 int pidfd = -1, retval; in copy_process() local
Dsignal.c3882 SYSCALL_DEFINE4(pidfd_send_signal, int, pidfd, int, sig, in SYSCALL_DEFINE4() argument
/linux-6.6.21/tools/testing/selftests/net/af_unix/
Dscm_pidfd.c94 static pid_t get_pid_from_fdinfo_file(int pidfd, const char *key, size_t keylen) in get_pid_from_fdinfo_file()
138 int *pidfd = NULL; in cmsg_check() local
/linux-6.6.21/tools/testing/selftests/clone3/
Dclone3_selftests.h28 __aligned_u64 pidfd; member
/linux-6.6.21/include/linux/sched/
Dtask.h23 int __user *pidfd; member
/linux-6.6.21/include/uapi/linux/
Dsched.h94 __aligned_u64 pidfd; member
Dfanotify.h182 __s32 pidfd; member
/linux-6.6.21/tools/include/uapi/linux/
Dsched.h94 __aligned_u64 pidfd; member
/linux-6.6.21/fs/notify/fanotify/
Dfanotify_user.c513 static int copy_pidfd_info_to_user(int pidfd, in copy_pidfd_info_to_user()
535 unsigned int info_mode, int pidfd, in copy_info_records_to_user()
667 int ret, pidfd = FAN_NOPIDFD, fd = FAN_NOFD; in copy_event_to_user() local
/linux-6.6.21/include/net/
Dscm.h127 int len, pidfd; in scm_pidfd_recv() local
/linux-6.6.21/mm/
Doom_kill.c1195 SYSCALL_DEFINE2(process_mrelease, int, pidfd, unsigned int, flags) in SYSCALL_DEFINE2() argument
Dmadvise.c1466 SYSCALL_DEFINE5(process_madvise, int, pidfd, const struct iovec __user *, vec, in SYSCALL_DEFINE5() argument
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/
Dbpf_iter.c292 int pidfd; in test_task_pidfd() local
/linux-6.6.21/net/core/
Dsock.c1781 int pidfd; in sk_getsockopt() local