| /linux-6.15/kernel/ |
| H A D | fork.c | 1783 if (clone_flags & CLONE_VM) { in copy_mm() 2142 if ((clone_flags & (CLONE_VM | CLONE_THREAD | CLONE_VFORK)) != CLONE_VM) in copy_oom_score_adj() 2484 if ((clone_flags & (CLONE_VM|CLONE_VFORK)) == CLONE_VM) in copy_process() 2757 .flags = CLONE_VM, in fork_idle() 2784 .flags = ((lower_32_bits(flags) | CLONE_VM | in create_io_thread() 2898 .flags = ((lower_32_bits(flags) | CLONE_VM | in kernel_thread() 2916 .flags = ((lower_32_bits(flags) | CLONE_VM | in user_mode_thread() 2946 .flags = CLONE_VFORK | CLONE_VM, in SYSCALL_DEFINE0() 3252 CLONE_VM|CLONE_FILES|CLONE_SYSVSEM| in check_unshare_flags() 3271 if (unshare_flags & CLONE_VM) { in check_unshare_flags() [all …]
|
| H A D | vhost_task.c | 123 .flags = CLONE_FS | CLONE_UNTRACED | CLONE_VM | in vhost_task_create()
|
| H A D | nsproxy.c | 160 if ((flags & CLONE_VM) || in copy_namespaces() 183 if ((flags & CLONE_VM) == 0) in copy_namespaces()
|
| /linux-6.15/arch/arm64/mm/ |
| H A D | gcs.c | 52 if ((args->flags & (CLONE_VFORK | CLONE_VM)) != CLONE_VM) { in gcs_alloc_thread_stack()
|
| /linux-6.15/arch/um/os-Linux/ |
| H A D | helper.c | 76 pid = clone(helper_child, (void *) sp, CLONE_VM, &data); in run_helper() 126 if (flags & CLONE_VM) in run_helper_thread()
|
| /linux-6.15/tools/testing/selftests/proc/ |
| H A D | thread-self.c | 59 pid = clone(f, stack + PAGE_SIZE, CLONE_THREAD|CLONE_SIGHAND|CLONE_VM, (void *)1); in main()
|
| /linux-6.15/include/linux/ |
| H A D | user_events.h | 45 if (clone_flags & CLONE_VM) { in user_events_fork()
|
| H A D | rseq.h | 70 if (clone_flags & CLONE_VM) { in rseq_fork()
|
| /linux-6.15/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-6.15/tools/perf/trace/beauty/include/uapi/linux/ |
| H A D | sched.h | 11 #define CLONE_VM 0x00000100 /* set if VM shared between processes */ macro
|
| /linux-6.15/include/uapi/linux/ |
| H A D | sched.h | 11 #define CLONE_VM 0x00000100 /* set if VM shared between processes */ macro
|
| /linux-6.15/arch/sparc/kernel/ |
| H A D | process.c | 47 .flags = CLONE_VFORK | CLONE_VM, in sparc_vfork()
|
| /linux-6.15/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-6.15/tools/testing/selftests/powerpc/dexcr/ |
| H A D | hashchk_test.c | 211 CLONE_VM | SIGCHLD, NULL); in hashchk_clone_share_key_test()
|
| /linux-6.15/tools/testing/selftests/memfd/ |
| H A D | fuse_test.c | 213 SIGCHLD | CLONE_FILES | CLONE_FS | CLONE_VM, in spawn_sealing_thread()
|
| /linux-6.15/Documentation/userspace-api/ |
| H A D | unshare.rst | 161 CLONE_VM 162 If CLONE_VM is set, the virtual memory of the caller is 263 Force implied flags. If CLONE_THREAD is set force CLONE_VM. 264 If CLONE_VM is set, force CLONE_SIGHAND. If CLONE_SIGHAND is
|
| /linux-6.15/arch/xtensa/kernel/ |
| H A D | process.c | 317 if (clone_flags & CLONE_VM) { in copy_thread()
|
| H A D | asm-offsets.c | 126 DEFINE(_CLONE_VM, CLONE_VM); in main()
|
| /linux-6.15/arch/x86/kernel/ |
| H A D | process.c | 197 if (p->mm && (clone_flags & (CLONE_VM | CLONE_VFORK)) == CLONE_VM) in copy_thread()
|
| H A D | shstk.c | 222 if (!(clone_flags & CLONE_VM)) in shstk_alloc_thread_stack()
|
| /linux-6.15/tools/testing/selftests/pidfd/ |
| H A D | pidfd_setns_test.c | 405 ASSERT_NE(setns(self->pidfd, CLONE_VM), 0); in TEST_F() 408 ASSERT_NE(setns(self->pidfd, CLONE_NEWUSER | CLONE_VM), 0); in TEST_F()
|
| /linux-6.15/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-6.15/tools/testing/selftests/user_events/ |
| H A D | abi_test.c | 411 CLONE_VM | SIGCHLD, &self->check)); in TEST_F()
|
| /linux-6.15/arch/riscv/kernel/ |
| H A D | process.c | 217 if (IS_ENABLED(CONFIG_RISCV_ISA_SUPM) && p->mm && (clone_flags & CLONE_VM)) in copy_thread()
|
| /linux-6.15/tools/testing/selftests/filesystems/ |
| H A D | utils.c | 395 pid = do_clone(userns_fd_cb, h, CLONE_NEWUSER | CLONE_FILES | CLONE_VM); in create_userns_hierarchy()
|