Lines Matching refs:clone_flags

939 static int copy_mm(unsigned long clone_flags, struct task_struct *tsk)  in copy_mm()  argument
965 if (clone_flags & CLONE_VM) { in copy_mm()
985 static int copy_fs(unsigned long clone_flags, struct task_struct *tsk) in copy_fs() argument
988 if (clone_flags & CLONE_FS) { in copy_fs()
1005 static int copy_files(unsigned long clone_flags, struct task_struct *tsk) in copy_files() argument
1017 if (clone_flags & CLONE_FILES) { in copy_files()
1032 static int copy_io(unsigned long clone_flags, struct task_struct *tsk) in copy_io() argument
1043 if (clone_flags & CLONE_IO) { in copy_io()
1058 static int copy_sighand(unsigned long clone_flags, struct task_struct *tsk) in copy_sighand() argument
1062 if (clone_flags & CLONE_SIGHAND) { in copy_sighand()
1109 static int copy_signal(unsigned long clone_flags, struct task_struct *tsk) in copy_signal() argument
1113 if (clone_flags & CLONE_THREAD) in copy_signal()
1239 static struct task_struct *copy_process(unsigned long clone_flags, in copy_process() argument
1249 if ((clone_flags & (CLONE_NEWNS|CLONE_FS)) == (CLONE_NEWNS|CLONE_FS)) in copy_process()
1252 if ((clone_flags & (CLONE_NEWUSER|CLONE_FS)) == (CLONE_NEWUSER|CLONE_FS)) in copy_process()
1259 if ((clone_flags & CLONE_THREAD) && !(clone_flags & CLONE_SIGHAND)) in copy_process()
1267 if ((clone_flags & CLONE_SIGHAND) && !(clone_flags & CLONE_VM)) in copy_process()
1276 if ((clone_flags & CLONE_PARENT) && in copy_process()
1285 if (clone_flags & CLONE_SIGHAND) { in copy_process()
1286 if ((clone_flags & (CLONE_NEWUSER | CLONE_NEWPID)) || in copy_process()
1292 retval = security_task_create(clone_flags); in copy_process()
1318 retval = copy_creds(p, clone_flags); in copy_process()
1368 if (clone_flags & CLONE_THREAD) in copy_process()
1414 retval = sched_fork(clone_flags, p); in copy_process()
1426 retval = copy_semundo(clone_flags, p); in copy_process()
1429 retval = copy_files(clone_flags, p); in copy_process()
1432 retval = copy_fs(clone_flags, p); in copy_process()
1435 retval = copy_sighand(clone_flags, p); in copy_process()
1438 retval = copy_signal(clone_flags, p); in copy_process()
1441 retval = copy_mm(clone_flags, p); in copy_process()
1444 retval = copy_namespaces(clone_flags, p); in copy_process()
1447 retval = copy_io(clone_flags, p); in copy_process()
1450 retval = copy_thread(clone_flags, stack_start, stack_size, p); in copy_process()
1462 p->set_child_tid = (clone_flags & CLONE_CHILD_SETTID) ? child_tidptr : NULL; in copy_process()
1466 p->clear_child_tid = (clone_flags & CLONE_CHILD_CLEARTID) ? child_tidptr : NULL; in copy_process()
1481 if ((clone_flags & (CLONE_VM|CLONE_VFORK)) == CLONE_VM) in copy_process()
1497 if (clone_flags & CLONE_THREAD) { in copy_process()
1502 if (clone_flags & CLONE_PARENT) in copy_process()
1505 p->exit_signal = (clone_flags & CSIGNAL); in copy_process()
1525 if (clone_flags & (CLONE_PARENT|CLONE_THREAD)) { in copy_process()
1558 ptrace_init_task(p, (clone_flags & CLONE_PTRACE) || trace); in copy_process()
1597 if (clone_flags & CLONE_THREAD) in copy_process()
1601 trace_task_newtask(p, clone_flags); in copy_process()
1602 uprobe_copy_process(p, clone_flags); in copy_process()
1618 if (!(clone_flags & CLONE_THREAD)) in copy_process()
1637 if (clone_flags & CLONE_THREAD) in copy_process()
1677 long do_fork(unsigned long clone_flags, in do_fork() argument
1693 if (!(clone_flags & CLONE_UNTRACED)) { in do_fork()
1694 if (clone_flags & CLONE_VFORK) in do_fork()
1696 else if ((clone_flags & CSIGNAL) != SIGCHLD) in do_fork()
1705 p = copy_process(clone_flags, stack_start, stack_size, in do_fork()
1720 if (clone_flags & CLONE_PARENT_SETTID) in do_fork()
1723 if (clone_flags & CLONE_VFORK) { in do_fork()
1735 if (clone_flags & CLONE_VFORK) { in do_fork()
1778 SYSCALL_DEFINE5(clone, unsigned long, clone_flags, unsigned long, newsp, in SYSCALL_DEFINE5() argument
1783 SYSCALL_DEFINE5(clone, unsigned long, newsp, unsigned long, clone_flags, in SYSCALL_DEFINE5()
1788 SYSCALL_DEFINE6(clone, unsigned long, clone_flags, unsigned long, newsp, in SYSCALL_DEFINE5()
1794 SYSCALL_DEFINE5(clone, unsigned long, clone_flags, unsigned long, newsp, in SYSCALL_DEFINE5()
1800 return do_fork(clone_flags, newsp, 0, parent_tidptr, child_tidptr); in SYSCALL_DEFINE5()