Lines Matching refs:clone_flags
1548 static int copy_mm(unsigned long clone_flags, struct task_struct *tsk) in copy_mm() argument
1571 if (clone_flags & CLONE_VM) { in copy_mm()
1585 static int copy_fs(unsigned long clone_flags, struct task_struct *tsk) in copy_fs() argument
1588 if (clone_flags & CLONE_FS) { in copy_fs()
1605 static int copy_files(unsigned long clone_flags, struct task_struct *tsk) in copy_files() argument
1617 if (clone_flags & CLONE_FILES) { in copy_files()
1632 static int copy_sighand(unsigned long clone_flags, struct task_struct *tsk) in copy_sighand() argument
1636 if (clone_flags & CLONE_SIGHAND) { in copy_sighand()
1651 if (clone_flags & CLONE_CLEAR_SIGHAND) in copy_sighand()
1681 static int copy_signal(unsigned long clone_flags, struct task_struct *tsk) in copy_signal() argument
1685 if (clone_flags & CLONE_THREAD) in copy_signal()
1949 static void copy_oom_score_adj(u64 clone_flags, struct task_struct *tsk) in copy_oom_score_adj() argument
1956 if ((clone_flags & (CLONE_VM | CLONE_THREAD | CLONE_VFORK)) != CLONE_VM) in copy_oom_score_adj()
1998 const u64 clone_flags = args->flags; in copy_process() local
2005 if ((clone_flags & (CLONE_NEWNS|CLONE_FS)) == (CLONE_NEWNS|CLONE_FS)) in copy_process()
2008 if ((clone_flags & (CLONE_NEWUSER|CLONE_FS)) == (CLONE_NEWUSER|CLONE_FS)) in copy_process()
2015 if ((clone_flags & CLONE_THREAD) && !(clone_flags & CLONE_SIGHAND)) in copy_process()
2023 if ((clone_flags & CLONE_SIGHAND) && !(clone_flags & CLONE_VM)) in copy_process()
2032 if ((clone_flags & CLONE_PARENT) && in copy_process()
2040 if (clone_flags & CLONE_THREAD) { in copy_process()
2041 if ((clone_flags & (CLONE_NEWUSER | CLONE_NEWPID)) || in copy_process()
2050 if (clone_flags & (CLONE_THREAD | CLONE_VM)) { in copy_process()
2055 if (clone_flags & CLONE_PIDFD) { in copy_process()
2061 if (clone_flags & (CLONE_DETACHED | CLONE_THREAD)) in copy_process()
2075 if (!(clone_flags & CLONE_THREAD)) in copy_process()
2099 p->set_child_tid = (clone_flags & CLONE_CHILD_SETTID) ? args->child_tid : NULL; in copy_process()
2103 p->clear_child_tid = (clone_flags & CLONE_CHILD_CLEARTID) ? args->child_tid : NULL; in copy_process()
2113 retval = copy_creds(p, clone_flags); in copy_process()
2223 retval = sched_fork(clone_flags, p); in copy_process()
2227 retval = perf_event_init_task(p, clone_flags); in copy_process()
2235 retval = security_task_alloc(p, clone_flags); in copy_process()
2238 retval = copy_semundo(clone_flags, p); in copy_process()
2241 retval = copy_files(clone_flags, p); in copy_process()
2244 retval = copy_fs(clone_flags, p); in copy_process()
2247 retval = copy_sighand(clone_flags, p); in copy_process()
2250 retval = copy_signal(clone_flags, p); in copy_process()
2253 retval = copy_mm(clone_flags, p); in copy_process()
2256 retval = copy_namespaces(clone_flags, p); in copy_process()
2259 retval = copy_io(clone_flags, p); in copy_process()
2282 if (clone_flags & CLONE_PIDFD) { in copy_process()
2311 if ((clone_flags & (CLONE_VM|CLONE_VFORK)) == CLONE_VM) in copy_process()
2327 if (clone_flags & CLONE_THREAD) { in copy_process()
2390 if (clone_flags & (CLONE_PARENT|CLONE_THREAD)) { in copy_process()
2393 if (clone_flags & CLONE_THREAD) in copy_process()
2417 rseq_fork(p, clone_flags); in copy_process()
2433 ptrace_init_task(p, (clone_flags & CLONE_PTRACE) || trace); in copy_process()
2488 trace_task_newtask(p, clone_flags); in copy_process()
2489 uprobe_copy_process(p, clone_flags); in copy_process()
2491 copy_oom_score_adj(clone_flags, p); in copy_process()
2501 if (clone_flags & CLONE_PIDFD) { in copy_process()
2521 if (!(clone_flags & CLONE_THREAD)) in copy_process()
2632 u64 clone_flags = args->flags; in kernel_clone() local
2659 if (!(clone_flags & CLONE_UNTRACED)) { in kernel_clone()
2660 if (clone_flags & CLONE_VFORK) in kernel_clone()
2686 if (clone_flags & CLONE_PARENT_SETTID) in kernel_clone()
2689 if (clone_flags & CLONE_VFORK) { in kernel_clone()
2695 if (IS_ENABLED(CONFIG_LRU_GEN) && !(clone_flags & CLONE_VM)) { in kernel_clone()
2708 if (clone_flags & CLONE_VFORK) { in kernel_clone()
2780 SYSCALL_DEFINE5(clone, unsigned long, clone_flags, unsigned long, newsp, in SYSCALL_DEFINE5() argument
2785 SYSCALL_DEFINE5(clone, unsigned long, newsp, unsigned long, clone_flags, in SYSCALL_DEFINE5()
2790 SYSCALL_DEFINE6(clone, unsigned long, clone_flags, unsigned long, newsp, in SYSCALL_DEFINE5()
2796 SYSCALL_DEFINE5(clone, unsigned long, clone_flags, unsigned long, newsp, in SYSCALL_DEFINE5()
2803 .flags = (lower_32_bits(clone_flags) & ~CSIGNAL), in SYSCALL_DEFINE5()
2807 .exit_signal = (lower_32_bits(clone_flags) & CSIGNAL), in SYSCALL_DEFINE5()