Lines Matching refs:clone_flags

948 static int copy_mm(unsigned long clone_flags, struct task_struct *tsk)  in copy_mm()  argument
974 if (clone_flags & CLONE_VM) { in copy_mm()
994 static int copy_fs(unsigned long clone_flags, struct task_struct *tsk) in copy_fs() argument
997 if (clone_flags & CLONE_FS) { in copy_fs()
1014 static int copy_files(unsigned long clone_flags, struct task_struct *tsk) in copy_files() argument
1026 if (clone_flags & CLONE_FILES) { in copy_files()
1041 static int copy_io(unsigned long clone_flags, struct task_struct *tsk) in copy_io() argument
1052 if (clone_flags & CLONE_IO) { in copy_io()
1067 static int copy_sighand(unsigned long clone_flags, struct task_struct *tsk) in copy_sighand() argument
1071 if (clone_flags & CLONE_SIGHAND) { in copy_sighand()
1116 static int copy_signal(unsigned long clone_flags, struct task_struct *tsk) in copy_signal() argument
1120 if (clone_flags & CLONE_THREAD) in copy_signal()
1243 static struct task_struct *copy_process(unsigned long clone_flags, in copy_process() argument
1255 if ((clone_flags & (CLONE_NEWNS|CLONE_FS)) == (CLONE_NEWNS|CLONE_FS)) in copy_process()
1258 if ((clone_flags & (CLONE_NEWUSER|CLONE_FS)) == (CLONE_NEWUSER|CLONE_FS)) in copy_process()
1265 if ((clone_flags & CLONE_THREAD) && !(clone_flags & CLONE_SIGHAND)) in copy_process()
1273 if ((clone_flags & CLONE_SIGHAND) && !(clone_flags & CLONE_VM)) in copy_process()
1282 if ((clone_flags & CLONE_PARENT) && in copy_process()
1290 if (clone_flags & CLONE_THREAD) { in copy_process()
1291 if ((clone_flags & (CLONE_NEWUSER | CLONE_NEWPID)) || in copy_process()
1297 retval = security_task_create(clone_flags); in copy_process()
1323 retval = copy_creds(p, clone_flags); in copy_process()
1420 retval = sched_fork(clone_flags, p); in copy_process()
1432 retval = copy_semundo(clone_flags, p); in copy_process()
1435 retval = copy_files(clone_flags, p); in copy_process()
1438 retval = copy_fs(clone_flags, p); in copy_process()
1441 retval = copy_sighand(clone_flags, p); in copy_process()
1444 retval = copy_signal(clone_flags, p); in copy_process()
1447 retval = copy_mm(clone_flags, p); in copy_process()
1450 retval = copy_namespaces(clone_flags, p); in copy_process()
1453 retval = copy_io(clone_flags, p); in copy_process()
1456 retval = copy_thread_tls(clone_flags, stack_start, stack_size, p, tls); in copy_process()
1468 p->set_child_tid = (clone_flags & CLONE_CHILD_SETTID) ? child_tidptr : NULL; in copy_process()
1472 p->clear_child_tid = (clone_flags & CLONE_CHILD_CLEARTID) ? child_tidptr : NULL; in copy_process()
1487 if ((clone_flags & (CLONE_VM|CLONE_VFORK)) == CLONE_VM) in copy_process()
1503 if (clone_flags & CLONE_THREAD) { in copy_process()
1508 if (clone_flags & CLONE_PARENT) in copy_process()
1511 p->exit_signal = (clone_flags & CSIGNAL); in copy_process()
1541 if (clone_flags & (CLONE_PARENT|CLONE_THREAD)) { in copy_process()
1574 ptrace_init_task(p, (clone_flags & CLONE_PTRACE) || trace); in copy_process()
1616 trace_task_newtask(p, clone_flags); in copy_process()
1617 uprobe_copy_process(p, clone_flags); in copy_process()
1635 if (!(clone_flags & CLONE_THREAD)) in copy_process()
1693 long _do_fork(unsigned long clone_flags, in _do_fork() argument
1710 if (!(clone_flags & CLONE_UNTRACED)) { in _do_fork()
1711 if (clone_flags & CLONE_VFORK) in _do_fork()
1713 else if ((clone_flags & CSIGNAL) != SIGCHLD) in _do_fork()
1722 p = copy_process(clone_flags, stack_start, stack_size, in _do_fork()
1737 if (clone_flags & CLONE_PARENT_SETTID) in _do_fork()
1740 if (clone_flags & CLONE_VFORK) { in _do_fork()
1752 if (clone_flags & CLONE_VFORK) { in _do_fork()
1767 long do_fork(unsigned long clone_flags, in do_fork() argument
1773 return _do_fork(clone_flags, stack_start, stack_size, in do_fork()
1809 SYSCALL_DEFINE5(clone, unsigned long, clone_flags, unsigned long, newsp, in SYSCALL_DEFINE5() argument
1814 SYSCALL_DEFINE5(clone, unsigned long, newsp, unsigned long, clone_flags, in SYSCALL_DEFINE5()
1819 SYSCALL_DEFINE6(clone, unsigned long, clone_flags, unsigned long, newsp, in SYSCALL_DEFINE5()
1825 SYSCALL_DEFINE5(clone, unsigned long, clone_flags, unsigned long, newsp, in SYSCALL_DEFINE5()
1831 return _do_fork(clone_flags, newsp, 0, parent_tidptr, child_tidptr, tls); in SYSCALL_DEFINE5()