Home
last modified time | relevance | path

Searched refs:CLONE_FILES (Results 1 – 20 of 20) sorted by relevance

/linux/tools/testing/selftests/core/
H A Dunshare_test.c25 .flags = CLONE_FILES, in TEST()
81 err = unshare(CLONE_FILES); in TEST()
H A Dclose_range_test.c113 .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 Dmove_mount_set_group_test.c359 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 Dsched.h
/linux/tools/perf/trace/beauty/include/uapi/linux/
H A Dsched.h13 #define CLONE_FILES 0x00000400 /* set if open files shared between processes */ macro
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dfexit_sleep.c46 cpid = clone(do_sleep, child_stack + STACK_SIZE, CLONE_FILES | SIGCHLD, fexit_skel); in test_fexit_sleep()
/linux/tools/testing/selftests/mm/
H A Dpkey_sighandler_tests.c326 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 Dfd-001-lookup.c104 if (unshare(CLONE_FILES) == -1) in main()
/linux/tools/testing/selftests/memfd/
H A Dfuse_test.c213 SIGCHLD | CLONE_FILES | CLONE_FS | CLONE_VM, in spawn_sealing_thread()
H A Dmemfd_test.c1754 pid = spawn_idle_thread(CLONE_FILES | CLONE_FS | CLONE_VM); in main()
/linux/arch/um/drivers/
H A Dchan_user.c261 pid = run_helper_thread(winch_thread, &data, CLONE_FILES, stack_out); in winch_tramp()
/linux/tools/testing/selftests/sched/
H A Dcs_prctl_test.c64 const int THREAD_CLONE_FLAGS = CLONE_THREAD | CLONE_SIGHAND | CLONE_FS | CLONE_VM | CLONE_FILES;
/linux/kernel/
H A Dfork.c1634 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, &copy); in unshare_files()
H A Dkthread.c460 CLONE_FS | CLONE_FILES | SIGCHLD); in create_kthread()
/linux/tools/testing/selftests/x86/
H A Dlam.c869 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 Dfiles.rst14 table between tasks cloned with CLONE_FILES flag. Typically
/linux/Documentation/userspace-api/
H A Dunshare.rst152 CLONE_FILES
153 If CLONE_FILES is set, the file descriptor table of the
/linux/tools/testing/selftests/filesystems/
H A Dutils.c396 /* 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 Dtest_core.c834 CLONE_NEWCGROUP | CLONE_FILES | CLONE_VM | SIGCHLD, in test_cgcore_lesser_ns_open()
/linux/tools/testing/selftests/seccomp/
H A Dseccomp_bpf.c3941 .flags = CLONE_FILES, in TEST()
3992 .flags = CLONE_FILES, in TEST()
4052 .flags = CLONE_FILES, in TEST()