Home
last modified time | relevance | path

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

12

/linux/kernel/
H A Dfork.c1733 if (clone_flags & CLONE_VM) { in copy_mm()
2102 if ((clone_flags & (CLONE_VM | CLONE_THREAD | CLONE_VFORK)) != CLONE_VM) in copy_oom_score_adj()
2169 if ((clone_flags & CLONE_SIGHAND) && !(clone_flags & CLONE_VM)) in copy_process()
2441 if ((clone_flags & (CLONE_VM|CLONE_VFORK)) == CLONE_VM) in copy_process()
2709 .flags = CLONE_VM, in fork_idle()
2736 .flags = ((lower_32_bits(flags) | CLONE_VM | in create_io_thread()
2821 if (IS_ENABLED(CONFIG_LRU_GEN_WALKS_MMU) && !(clone_flags & CLONE_VM)) { in kernel_clone()
2850 .flags = ((lower_32_bits(flags) | CLONE_VM | in kernel_thread()
2868 .flags = ((lower_32_bits(flags) | CLONE_VM | in user_mode_thread()
2898 .flags = CLONE_VFORK | CLONE_VM, in SYSCALL_DEFINE0()
[all …]
H A Dvhost_task.c110 .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/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/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/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/arch/um/drivers/
H A Dubd_user.c50 pid = clone(io_thread, (void *) sp, CLONE_FILES | CLONE_VM, NULL); in start_io_thread()
/linux/tools/include/uapi/linux/
H A Dsched.h11 #define CLONE_VM 0x00000100 /* set if VM shared between processes */ macro
/linux/include/uapi/linux/
H A Dsched.h11 #define CLONE_VM 0x00000100 /* set if VM shared between processes */ macro
/linux/arch/sparc/kernel/
H A Dprocess.c47 .flags = CLONE_VFORK | CLONE_VM, in sparc_vfork()
/linux/tools/testing/selftests/powerpc/dexcr/
H A Dhashchk_test.c211 CLONE_VM | SIGCHLD, NULL); in hashchk_clone_share_key_test()
/linux/arch/um/os-Linux/
H A Dhelper.c75 pid = clone(helper_child, (void *) sp, CLONE_VM, &data); in run_helper()
H A Dsigio.c328 CLONE_FILES | CLONE_VM, in write_sigio_workaround()
/linux/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/tools/testing/selftests/memfd/
H A Dfuse_test.c213 SIGCHLD | CLONE_FILES | CLONE_FS | CLONE_VM, in spawn_sealing_thread()
/linux/tools/testing/selftests/pidfd/
H A Dpidfd_setns_test.c351 ASSERT_NE(setns(self->pidfd, CLONE_VM), 0); in TEST_F()
354 ASSERT_NE(setns(self->pidfd, CLONE_NEWUSER | CLONE_VM), 0); in TEST_F()
/linux/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/arch/x86/kernel/
H A Dprocess.c191 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/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/tools/testing/selftests/user_events/
H A Dabi_test.c411 CLONE_VM | SIGCHLD, &self->check)); in TEST_F()
/linux/tools/testing/selftests/x86/
H A Dlam.c765 SIGCHLD | CLONE_FILES | CLONE_FS | CLONE_VM, NULL); in handle_thread()
793 SIGCHLD | CLONE_FILES | CLONE_FS | CLONE_VM, test); in handle_thread_enable()
/linux/Documentation/admin-guide/mm/
H A Dnommu-mmap.rst14 the CLONE_VM flag.
30 shared across fork() or clone() without CLONE_VM in the MMU case. Since

12