Home
last modified time | relevance | path

Searched refs:CLONE_VM (Results 1 – 25 of 33) sorted by relevance

12

/linux-6.15/kernel/
H A Dfork.c1783 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 Dvhost_task.c123 .flags = CLONE_FS | CLONE_UNTRACED | CLONE_VM | in vhost_task_create()
H A Dnsproxy.c160 if ((flags & CLONE_VM) || in copy_namespaces()
183 if ((flags & CLONE_VM) == 0) in copy_namespaces()
/linux-6.15/arch/arm64/mm/
H A Dgcs.c52 if ((args->flags & (CLONE_VFORK | CLONE_VM)) != CLONE_VM) { in gcs_alloc_thread_stack()
/linux-6.15/arch/um/os-Linux/
H A Dhelper.c76 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 Dthread-self.c59 pid = clone(f, stack + PAGE_SIZE, CLONE_THREAD|CLONE_SIGHAND|CLONE_VM, (void *)1); in main()
/linux-6.15/include/linux/
H A Duser_events.h45 if (clone_flags & CLONE_VM) { in user_events_fork()
H A Drseq.h70 if (clone_flags & CLONE_VM) { in rseq_fork()
/linux-6.15/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-6.15/tools/perf/trace/beauty/include/uapi/linux/
H A Dsched.h11 #define CLONE_VM 0x00000100 /* set if VM shared between processes */ macro
/linux-6.15/include/uapi/linux/
H A Dsched.h11 #define CLONE_VM 0x00000100 /* set if VM shared between processes */ macro
/linux-6.15/arch/sparc/kernel/
H A Dprocess.c47 .flags = CLONE_VFORK | CLONE_VM, in sparc_vfork()
/linux-6.15/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-6.15/tools/testing/selftests/powerpc/dexcr/
H A Dhashchk_test.c211 CLONE_VM | SIGCHLD, NULL); in hashchk_clone_share_key_test()
/linux-6.15/tools/testing/selftests/memfd/
H A Dfuse_test.c213 SIGCHLD | CLONE_FILES | CLONE_FS | CLONE_VM, in spawn_sealing_thread()
/linux-6.15/Documentation/userspace-api/
H A Dunshare.rst161 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 Dprocess.c317 if (clone_flags & CLONE_VM) { in copy_thread()
H A Dasm-offsets.c126 DEFINE(_CLONE_VM, CLONE_VM); in main()
/linux-6.15/arch/x86/kernel/
H A Dprocess.c197 if (p->mm && (clone_flags & (CLONE_VM | CLONE_VFORK)) == CLONE_VM) in copy_thread()
H A Dshstk.c222 if (!(clone_flags & CLONE_VM)) in shstk_alloc_thread_stack()
/linux-6.15/tools/testing/selftests/pidfd/
H A Dpidfd_setns_test.c405 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 Dcs_prctl_test.c64 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 Dabi_test.c411 CLONE_VM | SIGCHLD, &self->check)); in TEST_F()
/linux-6.15/arch/riscv/kernel/
H A Dprocess.c217 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 Dutils.c395 pid = do_clone(userns_fd_cb, h, CLONE_NEWUSER | CLONE_FILES | CLONE_VM); in create_userns_hierarchy()

12