Home
last modified time | relevance | path

Searched refs:CLONE_PIDFD (Results 1 - 20 of 20) sorted by relevance

/kernel/linux/linux-5.10/samples/pidfd/
H A Dpidfd-metadata.c20 #ifndef CLONE_PIDFD
21 #define CLONE_PIDFD 0x00001000 macro
92 pid = pidfd_clone(CLONE_PIDFD, &pidfd); in main()
94 err(ret, "CLONE_PIDFD"); in main()
96 warnx("CLONE_PIDFD is not supported by the kernel"); in main()
/kernel/linux/linux-6.6/samples/pidfd/
H A Dpidfd-metadata.c20 #ifndef CLONE_PIDFD
21 #define CLONE_PIDFD 0x00001000 macro
92 pid = pidfd_clone(CLONE_PIDFD, &pidfd); in main()
94 err(ret, "CLONE_PIDFD"); in main()
96 warnx("CLONE_PIDFD is not supported by the kernel"); in main()
/kernel/linux/linux-5.10/tools/testing/selftests/pidfd/
H A Dpidfd.h29 #ifndef CLONE_PIDFD
30 #define CLONE_PIDFD 0x00001000 macro
H A Dpidfd_wait.c47 .flags = CLONE_PIDFD | CLONE_PARENT_SETTID, in TEST()
95 .flags = CLONE_PIDFD | CLONE_PARENT_SETTID, in TEST()
H A Dpidfd_test.c448 pid = pidfd_clone(CLONE_PIDFD, &pidfd, child_poll_exec_test); in test_pidfd_poll_exec()
521 pid = pidfd_clone(CLONE_PIDFD, &pidfd, child_poll_leader_exit_test); in test_pidfd_poll_leader_exit()
H A Dpidfd_fdinfo_test.c95 static int flags = CLONE_PIDFD | CLONE_NEWPID | CLONE_NEWNS | SIGCHLD; in clone_newns()
H A Dpidfd_setns_test.c78 .flags = CLONE_PIDFD | flags, in create_child()
/kernel/linux/linux-6.6/tools/testing/selftests/pidfd/
H A Dpidfd.h29 #ifndef CLONE_PIDFD
30 #define CLONE_PIDFD 0x00001000 macro
H A Dpidfd_test.c451 pid = pidfd_clone(CLONE_PIDFD, &pidfd, child_poll_exec_test); in test_pidfd_poll_exec()
524 pid = pidfd_clone(CLONE_PIDFD, &pidfd, child_poll_leader_exit_test); in test_pidfd_poll_leader_exit()
H A Dpidfd_wait.c47 .flags = CLONE_PIDFD | CLONE_PARENT_SETTID, in TEST()
95 .flags = CLONE_PIDFD | CLONE_PARENT_SETTID, in TEST()
H A Dpidfd_fdinfo_test.c95 static int flags = CLONE_PIDFD | CLONE_NEWPID | CLONE_NEWNS | SIGCHLD; in clone_newns()
H A Dpidfd_setns_test.c78 .flags = CLONE_PIDFD | flags, in create_child()
/kernel/linux/linux-5.10/tools/include/uapi/linux/
H A Dsched.h15 #define CLONE_PIDFD 0x00001000 /* set if a pidfd should be placed in parent */ macro
52 * @pidfd: If CLONE_PIDFD is set, a pidfd will be
/kernel/linux/linux-5.10/include/uapi/linux/
H A Dsched.h15 #define CLONE_PIDFD 0x00001000 /* set if a pidfd should be placed in parent */ macro
52 * @pidfd: If CLONE_PIDFD is set, a pidfd will be
/kernel/linux/linux-6.6/include/uapi/linux/
H A Dsched.h15 #define CLONE_PIDFD 0x00001000 /* set if a pidfd should be placed in parent */ macro
52 * @pidfd: If CLONE_PIDFD is set, a pidfd will be
/kernel/linux/linux-6.6/tools/include/uapi/linux/
H A Dsched.h15 #define CLONE_PIDFD 0x00001000 /* set if a pidfd should be placed in parent */ macro
52 * @pidfd: If CLONE_PIDFD is set, a pidfd will be
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
H A Dsched.h27 #define CLONE_PIDFD 0x00001000 macro
/kernel/linux/patches/linux-6.6/prebuilts/usr/include/linux/
H A Dsched.h27 #define CLONE_PIDFD 0x00001000 macro
/kernel/linux/linux-5.10/kernel/
H A Dfork.c1949 if (clone_flags & CLONE_PIDFD) { in copy_process()
1952 * reuse it later for CLONE_PIDFD. in copy_process()
2178 if (clone_flags & CLONE_PIDFD) { in copy_process()
2375 if (clone_flags & CLONE_PIDFD) { in copy_process()
2499 * For legacy clone() calls, CLONE_PIDFD uses the parent_tid argument in kernel_clone()
2500 * to return the pidfd. Hence, CLONE_PIDFD and CLONE_PARENT_SETTID are in kernel_clone()
2501 * mutually exclusive. With clone3() CLONE_PIDFD has grown a separate in kernel_clone()
2507 if ((args->flags & CLONE_PIDFD) && in kernel_clone()
/kernel/linux/linux-6.6/kernel/
H A Dfork.c2125 * created via CLONE_PIDFD where @pid has no task attached when the pidfd and
2312 if (clone_flags & CLONE_PIDFD) { in copy_process()
2315 * reuse it later for CLONE_PIDFD. in copy_process()
2544 if (clone_flags & CLONE_PIDFD) { in copy_process()
2757 if (clone_flags & CLONE_PIDFD) { in copy_process()
2893 * For legacy clone() calls, CLONE_PIDFD uses the parent_tid argument in kernel_clone()
2894 * to return the pidfd. Hence, CLONE_PIDFD and CLONE_PARENT_SETTID are in kernel_clone()
2895 * mutually exclusive. With clone3() CLONE_PIDFD has grown a separate in kernel_clone()
2901 if ((args->flags & CLONE_PIDFD) && in kernel_clone()

Completed in 17 milliseconds