| /linux/tools/testing/selftests/core/ |
| H A D | unshare_test.c | 25 .flags = CLONE_FILES, in TEST() 81 err = unshare(CLONE_FILES); in TEST()
|
| H A D | close_range_test.c | 113 .flags = CLONE_FILES, in TEST() 202 .flags = CLONE_FILES, in TEST() 386 .flags = CLONE_FILES, in TEST() 503 .flags = CLONE_FILES, in TEST() 601 .flags = CLONE_FILES, in TEST()
|
| /linux/tools/testing/selftests/move_mount_set_group/ |
| H A D | move_mount_set_group_test.c | 359 CLONE_VM | CLONE_FILES); ASSERT_GT(pid, 0); in TEST_F() 363 CLONE_VM | CLONE_FILES); ASSERT_GT(pid, 0); in TEST_F()
|
| /linux/tools/include/uapi/linux/ |
| H A D | sched.h | |
| /linux/tools/perf/trace/beauty/include/uapi/linux/ |
| H A D | sched.h | 13 #define CLONE_FILES 0x00000400 /* set if open files shared between processes */ macro
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | fexit_sleep.c | 46 cpid = clone(do_sleep, child_stack + STACK_SIZE, CLONE_FILES | SIGCHLD, fexit_skel); in test_fexit_sleep()
|
| /linux/tools/testing/selftests/mm/ |
| H A D | pkey_sighandler_tests.c | 326 long ret = clone_raw(CLONE_VM | CLONE_FS | CLONE_FILES | in test_sigsegv_handler_with_different_pkey_for_stack() 497 long ret = clone_raw(CLONE_VM | CLONE_FS | CLONE_FILES | in test_pkru_sigreturn()
|
| /linux/tools/testing/selftests/proc/ |
| H A D | fd-001-lookup.c | 104 if (unshare(CLONE_FILES) == -1) in main()
|
| /linux/tools/testing/selftests/memfd/ |
| H A D | fuse_test.c | 213 SIGCHLD | CLONE_FILES | CLONE_FS | CLONE_VM, in spawn_sealing_thread()
|
| H A D | memfd_test.c | 1754 pid = spawn_idle_thread(CLONE_FILES | CLONE_FS | CLONE_VM); in main()
|
| /linux/arch/um/drivers/ |
| H A D | chan_user.c | 261 pid = run_helper_thread(winch_thread, &data, CLONE_FILES, stack_out); in winch_tramp()
|
| /linux/tools/testing/selftests/sched/ |
| H A D | cs_prctl_test.c | 64 const int THREAD_CLONE_FLAGS = CLONE_THREAD | CLONE_SIGHAND | CLONE_FS | CLONE_VM | CLONE_FILES;
|
| /linux/kernel/ |
| H A D | fork.c | 1634 if (clone_flags & CLONE_FILES) { in copy_files() 2649 unsigned long flags = CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD| in create_io_thread() 3118 CLONE_VM|CLONE_FILES|CLONE_SYSVSEM| in check_unshare_flags() 3171 if ((unshare_flags & CLONE_FILES) && in unshare_fd() 3331 error = unshare_fd(CLONE_FILES, ©); in unshare_files()
|
| H A D | kthread.c | 460 CLONE_FS | CLONE_FILES | SIGCHLD); in create_kthread()
|
| /linux/tools/testing/selftests/x86/ |
| H A D | lam.c | 869 SIGCHLD | CLONE_FILES | CLONE_FS | CLONE_VM, NULL); in handle_thread() 897 SIGCHLD | CLONE_FILES | CLONE_FS | CLONE_VM, test); in handle_thread_enable()
|
| /linux/Documentation/filesystems/ |
| H A D | files.rst | 14 table between tasks cloned with CLONE_FILES flag. Typically
|
| /linux/Documentation/userspace-api/ |
| H A D | unshare.rst | 152 CLONE_FILES 153 If CLONE_FILES is set, the file descriptor table of the
|
| /linux/tools/testing/selftests/filesystems/ |
| H A D | utils.c | 396 /* Note the CLONE_FILES | CLONE_VM when mucking with fds and memory. */ in create_userns_hierarchy() 398 pid = do_clone(userns_fd_cb, h, CLONE_NEWUSER | CLONE_FILES | CLONE_VM); in create_userns_hierarchy()
|
| /linux/tools/testing/selftests/cgroup/ |
| H A D | test_core.c | 834 CLONE_NEWCGROUP | CLONE_FILES | CLONE_VM | SIGCHLD, in test_cgcore_lesser_ns_open()
|
| /linux/tools/testing/selftests/seccomp/ |
| H A D | seccomp_bpf.c | 3941 .flags = CLONE_FILES, in TEST() 3992 .flags = CLONE_FILES, in TEST() 4052 .flags = CLONE_FILES, in TEST()
|