/kernel/linux/linux-5.10/samples/pidfd/ |
H A D | pidfd-metadata.c | 20 #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 D | pidfd-metadata.c | 20 #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 D | pidfd.h | 29 #ifndef CLONE_PIDFD 30 #define CLONE_PIDFD 0x00001000 macro
|
H A D | pidfd_wait.c | 47 .flags = CLONE_PIDFD | CLONE_PARENT_SETTID, in TEST() 95 .flags = CLONE_PIDFD | CLONE_PARENT_SETTID, in TEST()
|
H A D | pidfd_test.c | 448 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 D | pidfd_fdinfo_test.c | 95 static int flags = CLONE_PIDFD | CLONE_NEWPID | CLONE_NEWNS | SIGCHLD; in clone_newns()
|
H A D | pidfd_setns_test.c | 78 .flags = CLONE_PIDFD | flags, in create_child()
|
/kernel/linux/linux-6.6/tools/testing/selftests/pidfd/ |
H A D | pidfd.h | 29 #ifndef CLONE_PIDFD 30 #define CLONE_PIDFD 0x00001000 macro
|
H A D | pidfd_test.c | 451 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 D | pidfd_wait.c | 47 .flags = CLONE_PIDFD | CLONE_PARENT_SETTID, in TEST() 95 .flags = CLONE_PIDFD | CLONE_PARENT_SETTID, in TEST()
|
H A D | pidfd_fdinfo_test.c | 95 static int flags = CLONE_PIDFD | CLONE_NEWPID | CLONE_NEWNS | SIGCHLD; in clone_newns()
|
H A D | pidfd_setns_test.c | 78 .flags = CLONE_PIDFD | flags, in create_child()
|
/kernel/linux/linux-5.10/tools/include/uapi/linux/ |
H A D | sched.h | 15 #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 D | sched.h | 15 #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 D | sched.h | 15 #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 D | sched.h | 15 #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 D | sched.h | 27 #define CLONE_PIDFD 0x00001000 macro
|
/kernel/linux/patches/linux-6.6/prebuilts/usr/include/linux/ |
H A D | sched.h | 27 #define CLONE_PIDFD 0x00001000 macro
|
/kernel/linux/linux-5.10/kernel/ |
H A D | fork.c | 1949 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 D | fork.c | 2125 * 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()
|