Lines Matching refs:clone_flags
1295 static int copy_mm(unsigned long clone_flags, struct task_struct *tsk) in copy_mm() argument
1322 if (clone_flags & CLONE_VM) { in copy_mm()
1342 static int copy_fs(unsigned long clone_flags, struct task_struct *tsk) in copy_fs() argument
1345 if (clone_flags & CLONE_FS) { in copy_fs()
1362 static int copy_files(unsigned long clone_flags, struct task_struct *tsk) in copy_files() argument
1374 if (clone_flags & CLONE_FILES) { in copy_files()
1389 static int copy_io(unsigned long clone_flags, struct task_struct *tsk) in copy_io() argument
1400 if (clone_flags & CLONE_IO) { in copy_io()
1415 static int copy_sighand(unsigned long clone_flags, struct task_struct *tsk) in copy_sighand() argument
1419 if (clone_flags & CLONE_SIGHAND) { in copy_sighand()
1470 static int copy_signal(unsigned long clone_flags, struct task_struct *tsk) in copy_signal() argument
1474 if (clone_flags & CLONE_THREAD) in copy_signal()
1629 unsigned long clone_flags, in copy_process() argument
1646 if ((clone_flags & (CLONE_NEWNS|CLONE_FS)) == (CLONE_NEWNS|CLONE_FS)) in copy_process()
1649 if ((clone_flags & (CLONE_NEWUSER|CLONE_FS)) == (CLONE_NEWUSER|CLONE_FS)) in copy_process()
1656 if ((clone_flags & CLONE_THREAD) && !(clone_flags & CLONE_SIGHAND)) in copy_process()
1664 if ((clone_flags & CLONE_SIGHAND) && !(clone_flags & CLONE_VM)) in copy_process()
1673 if ((clone_flags & CLONE_PARENT) && in copy_process()
1681 if (clone_flags & CLONE_THREAD) { in copy_process()
1682 if ((clone_flags & (CLONE_NEWUSER | CLONE_NEWPID)) || in copy_process()
1698 if (!(clone_flags & CLONE_THREAD)) in copy_process()
1717 p->set_child_tid = (clone_flags & CLONE_CHILD_SETTID) ? child_tidptr : NULL; in copy_process()
1721 p->clear_child_tid = (clone_flags & CLONE_CHILD_CLEARTID) ? child_tidptr : NULL; in copy_process()
1740 retval = copy_creds(p, clone_flags); in copy_process()
1839 retval = sched_fork(clone_flags, p); in copy_process()
1851 retval = security_task_alloc(p, clone_flags); in copy_process()
1854 retval = copy_semundo(clone_flags, p); in copy_process()
1857 retval = copy_files(clone_flags, p); in copy_process()
1860 retval = copy_fs(clone_flags, p); in copy_process()
1863 retval = copy_sighand(clone_flags, p); in copy_process()
1866 retval = copy_signal(clone_flags, p); in copy_process()
1869 retval = copy_mm(clone_flags, p); in copy_process()
1872 retval = copy_namespaces(clone_flags, p); in copy_process()
1875 retval = copy_io(clone_flags, p); in copy_process()
1878 retval = copy_thread_tls(clone_flags, stack_start, stack_size, p, tls); in copy_process()
1904 if ((clone_flags & (CLONE_VM|CLONE_VFORK)) == CLONE_VM) in copy_process()
1920 if (clone_flags & CLONE_THREAD) { in copy_process()
1925 if (clone_flags & CLONE_PARENT) in copy_process()
1928 p->exit_signal = (clone_flags & CSIGNAL); in copy_process()
1959 if (clone_flags & (CLONE_PARENT|CLONE_THREAD)) { in copy_process()
1977 rseq_fork(p, clone_flags); in copy_process()
1994 ptrace_init_task(p, (clone_flags & CLONE_PTRACE) || trace); in copy_process()
2045 trace_task_newtask(p, clone_flags); in copy_process()
2046 uprobe_copy_process(p, clone_flags); in copy_process()
2069 if (!(clone_flags & CLONE_THREAD)) in copy_process()
2135 long _do_fork(unsigned long clone_flags, in _do_fork() argument
2154 if (!(clone_flags & CLONE_UNTRACED)) { in _do_fork()
2155 if (clone_flags & CLONE_VFORK) in _do_fork()
2157 else if ((clone_flags & CSIGNAL) != SIGCHLD) in _do_fork()
2166 p = copy_process(clone_flags, stack_start, stack_size, in _do_fork()
2182 if (clone_flags & CLONE_PARENT_SETTID) in _do_fork()
2185 if (clone_flags & CLONE_VFORK) { in _do_fork()
2197 if (clone_flags & CLONE_VFORK) { in _do_fork()
2209 long do_fork(unsigned long clone_flags, in do_fork() argument
2215 return _do_fork(clone_flags, stack_start, stack_size, in do_fork()
2251 SYSCALL_DEFINE5(clone, unsigned long, clone_flags, unsigned long, newsp, in SYSCALL_DEFINE5() argument
2256 SYSCALL_DEFINE5(clone, unsigned long, newsp, unsigned long, clone_flags, in SYSCALL_DEFINE5()
2261 SYSCALL_DEFINE6(clone, unsigned long, clone_flags, unsigned long, newsp, in SYSCALL_DEFINE5()
2267 SYSCALL_DEFINE5(clone, unsigned long, clone_flags, unsigned long, newsp, in SYSCALL_DEFINE5()
2273 return _do_fork(clone_flags, newsp, 0, parent_tidptr, child_tidptr, tls); in SYSCALL_DEFINE5()