Lines Matching refs:clone_flags

1551 static int copy_mm(unsigned long clone_flags, struct task_struct *tsk)  in copy_mm()  argument
1574 if (clone_flags & CLONE_VM) { in copy_mm()
1588 static int copy_fs(unsigned long clone_flags, struct task_struct *tsk) in copy_fs() argument
1591 if (clone_flags & CLONE_FS) { in copy_fs()
1608 static int copy_files(unsigned long clone_flags, struct task_struct *tsk) in copy_files() argument
1620 if (clone_flags & CLONE_FILES) { in copy_files()
1635 static int copy_sighand(unsigned long clone_flags, struct task_struct *tsk) in copy_sighand() argument
1639 if (clone_flags & CLONE_SIGHAND) { in copy_sighand()
1654 if (clone_flags & CLONE_CLEAR_SIGHAND) in copy_sighand()
1684 static int copy_signal(unsigned long clone_flags, struct task_struct *tsk) in copy_signal() argument
1688 if (clone_flags & CLONE_THREAD) in copy_signal()
1952 static void copy_oom_score_adj(u64 clone_flags, struct task_struct *tsk) in copy_oom_score_adj() argument
1959 if ((clone_flags & (CLONE_VM | CLONE_THREAD | CLONE_VFORK)) != CLONE_VM) in copy_oom_score_adj()
2001 const u64 clone_flags = args->flags; in copy_process() local
2008 if ((clone_flags & (CLONE_NEWNS|CLONE_FS)) == (CLONE_NEWNS|CLONE_FS)) in copy_process()
2011 if ((clone_flags & (CLONE_NEWUSER|CLONE_FS)) == (CLONE_NEWUSER|CLONE_FS)) in copy_process()
2018 if ((clone_flags & CLONE_THREAD) && !(clone_flags & CLONE_SIGHAND)) in copy_process()
2026 if ((clone_flags & CLONE_SIGHAND) && !(clone_flags & CLONE_VM)) in copy_process()
2035 if ((clone_flags & CLONE_PARENT) && in copy_process()
2043 if (clone_flags & CLONE_THREAD) { in copy_process()
2044 if ((clone_flags & (CLONE_NEWUSER | CLONE_NEWPID)) || in copy_process()
2053 if (clone_flags & (CLONE_THREAD | CLONE_VM)) { in copy_process()
2058 if (clone_flags & CLONE_PIDFD) { in copy_process()
2064 if (clone_flags & (CLONE_DETACHED | CLONE_THREAD)) in copy_process()
2078 if (!(clone_flags & CLONE_THREAD)) in copy_process()
2102 p->set_child_tid = (clone_flags & CLONE_CHILD_SETTID) ? args->child_tid : NULL; in copy_process()
2106 p->clear_child_tid = (clone_flags & CLONE_CHILD_CLEARTID) ? args->child_tid : NULL; in copy_process()
2116 retval = copy_creds(p, clone_flags); in copy_process()
2226 retval = sched_fork(clone_flags, p); in copy_process()
2230 retval = perf_event_init_task(p, clone_flags); in copy_process()
2238 retval = security_task_alloc(p, clone_flags); in copy_process()
2241 retval = copy_semundo(clone_flags, p); in copy_process()
2244 retval = copy_files(clone_flags, p); in copy_process()
2247 retval = copy_fs(clone_flags, p); in copy_process()
2250 retval = copy_sighand(clone_flags, p); in copy_process()
2253 retval = copy_signal(clone_flags, p); in copy_process()
2256 retval = copy_mm(clone_flags, p); in copy_process()
2259 retval = copy_namespaces(clone_flags, p); in copy_process()
2262 retval = copy_io(clone_flags, p); in copy_process()
2285 if (clone_flags & CLONE_PIDFD) { in copy_process()
2314 if ((clone_flags & (CLONE_VM|CLONE_VFORK)) == CLONE_VM) in copy_process()
2330 if (clone_flags & CLONE_THREAD) { in copy_process()
2393 if (clone_flags & (CLONE_PARENT|CLONE_THREAD)) { in copy_process()
2396 if (clone_flags & CLONE_THREAD) in copy_process()
2414 rseq_fork(p, clone_flags); in copy_process()
2438 ptrace_init_task(p, (clone_flags & CLONE_PTRACE) || trace); in copy_process()
2493 trace_task_newtask(p, clone_flags); in copy_process()
2494 uprobe_copy_process(p, clone_flags); in copy_process()
2496 copy_oom_score_adj(clone_flags, p); in copy_process()
2506 if (clone_flags & CLONE_PIDFD) { in copy_process()
2526 if (!(clone_flags & CLONE_THREAD)) in copy_process()
2637 u64 clone_flags = args->flags; in kernel_clone() local
2664 if (!(clone_flags & CLONE_UNTRACED)) { in kernel_clone()
2665 if (clone_flags & CLONE_VFORK) in kernel_clone()
2691 if (clone_flags & CLONE_PARENT_SETTID) in kernel_clone()
2694 if (clone_flags & CLONE_VFORK) { in kernel_clone()
2700 if (IS_ENABLED(CONFIG_LRU_GEN) && !(clone_flags & CLONE_VM)) { in kernel_clone()
2713 if (clone_flags & CLONE_VFORK) { in kernel_clone()
2785 SYSCALL_DEFINE5(clone, unsigned long, clone_flags, unsigned long, newsp, in SYSCALL_DEFINE5() argument
2790 SYSCALL_DEFINE5(clone, unsigned long, newsp, unsigned long, clone_flags, in SYSCALL_DEFINE5()
2795 SYSCALL_DEFINE6(clone, unsigned long, clone_flags, unsigned long, newsp, in SYSCALL_DEFINE5()
2801 SYSCALL_DEFINE5(clone, unsigned long, clone_flags, unsigned long, newsp, in SYSCALL_DEFINE5()
2808 .flags = (lower_32_bits(clone_flags) & ~CSIGNAL), in SYSCALL_DEFINE5()
2812 .exit_signal = (lower_32_bits(clone_flags) & CSIGNAL), in SYSCALL_DEFINE5()