Lines Matching defs:clone_flags

1559 static int copy_mm(u64 clone_flags, struct task_struct *tsk)
1582 if (clone_flags & CLONE_VM) {
1596 static int copy_fs(u64 clone_flags, struct task_struct *tsk)
1599 if (clone_flags & CLONE_FS) {
1617 static int copy_files(u64 clone_flags, struct task_struct *tsk,
1634 if (clone_flags & CLONE_FILES) {
1647 static int copy_sighand(u64 clone_flags, struct task_struct *tsk)
1651 if (clone_flags & CLONE_SIGHAND) {
1666 if (clone_flags & CLONE_CLEAR_SIGHAND)
1696 static int copy_signal(u64 clone_flags, struct task_struct *tsk)
1700 if (clone_flags & CLONE_THREAD)
1924 static void copy_oom_score_adj(u64 clone_flags, struct task_struct *tsk)
1931 if ((clone_flags & (CLONE_VM | CLONE_THREAD | CLONE_VFORK)) != CLONE_VM)
1952 static bool need_futex_hash_allocate_default(u64 clone_flags)
1954 if ((clone_flags & (CLONE_THREAD | CLONE_VM)) != (CLONE_THREAD | CLONE_VM))
1977 const u64 clone_flags = args->flags;
1984 if ((clone_flags & (CLONE_NEWNS|CLONE_FS)) == (CLONE_NEWNS|CLONE_FS))
1987 if ((clone_flags & (CLONE_NEWUSER|CLONE_FS)) == (CLONE_NEWUSER|CLONE_FS))
1994 if ((clone_flags & CLONE_THREAD) && !(clone_flags & CLONE_SIGHAND))
2002 if ((clone_flags & CLONE_SIGHAND) && !(clone_flags & CLONE_VM))
2011 if ((clone_flags & CLONE_PARENT) &&
2019 if (clone_flags & CLONE_THREAD) {
2020 if ((clone_flags & (CLONE_NEWUSER | CLONE_NEWPID)) ||
2025 if (clone_flags & CLONE_PIDFD) {
2030 if (clone_flags & CLONE_DETACHED)
2034 if (clone_flags & CLONE_AUTOREAP) {
2035 if (clone_flags & CLONE_THREAD)
2037 if (clone_flags & CLONE_PARENT)
2043 if ((clone_flags & CLONE_PARENT) && current->signal->autoreap)
2046 if (clone_flags & CLONE_NNP) {
2047 if (clone_flags & CLONE_THREAD)
2051 if (clone_flags & CLONE_PIDFD_AUTOKILL) {
2052 if (!(clone_flags & CLONE_PIDFD))
2054 if (!(clone_flags & CLONE_AUTOREAP))
2056 if (clone_flags & CLONE_THREAD)
2064 if (!(clone_flags & CLONE_NNP) &&
2079 if (!(clone_flags & CLONE_THREAD))
2108 p->set_child_tid = (clone_flags & CLONE_CHILD_SETTID) ? args->child_tid : NULL;
2112 p->clear_child_tid = (clone_flags & CLONE_CHILD_CLEARTID) ? args->child_tid : NULL;
2123 retval = copy_creds(p, clone_flags);
2232 retval = sched_fork(clone_flags, p);
2236 retval = perf_event_init_task(p, clone_flags);
2244 retval = security_task_alloc(p, clone_flags);
2247 retval = copy_semundo(clone_flags, p);
2250 retval = copy_files(clone_flags, p, args->no_files);
2253 retval = copy_fs(clone_flags, p);
2256 retval = copy_sighand(clone_flags, p);
2259 retval = copy_signal(clone_flags, p);
2262 retval = copy_mm(clone_flags, p);
2265 retval = copy_namespaces(clone_flags, p);
2268 retval = copy_io(clone_flags, p);
2291 if (clone_flags & CLONE_PIDFD) {
2294 if (clone_flags & CLONE_THREAD)
2296 if (clone_flags & CLONE_PIDFD_AUTOKILL)
2321 if ((clone_flags & (CLONE_VM|CLONE_VFORK)) == CLONE_VM)
2337 if (clone_flags & CLONE_THREAD) {
2387 if (need_futex_hash_allocate_default(clone_flags)) {
2416 if (clone_flags & (CLONE_PARENT|CLONE_THREAD)) {
2419 if (clone_flags & CLONE_THREAD)
2437 rseq_fork(p, clone_flags);
2463 if (clone_flags & CLONE_NNP)
2468 ptrace_init_task(p, (clone_flags & CLONE_PTRACE) || trace);
2492 if (clone_flags & CLONE_AUTOREAP)
2530 trace_task_newtask(p, clone_flags);
2531 uprobe_copy_process(p, clone_flags);
2532 user_events_fork(p, clone_flags);
2534 copy_oom_score_adj(clone_flags, p);
2545 if (clone_flags & CLONE_PIDFD) {
2565 if (!(clone_flags & CLONE_THREAD))
2674 u64 clone_flags = args->flags;
2686 if (clone_flags & CLONE_EMPTY_MNTNS) {
2687 clone_flags |= CLONE_NEWNS;
2688 args->flags = clone_flags;
2700 if ((clone_flags & CLONE_PIDFD) &&
2701 (clone_flags & CLONE_PARENT_SETTID) &&
2711 if (!(clone_flags & CLONE_UNTRACED)) {
2712 if (clone_flags & CLONE_VFORK)
2738 if (clone_flags & CLONE_PARENT_SETTID)
2741 if (clone_flags & CLONE_VFORK) {
2747 if (IS_ENABLED(CONFIG_LRU_GEN_WALKS_MMU) && !(clone_flags & CLONE_VM)) {
2760 if (clone_flags & CLONE_VFORK) {
2832 SYSCALL_DEFINE5(clone, unsigned long, clone_flags, unsigned long, newsp,
2837 SYSCALL_DEFINE5(clone, unsigned long, newsp, unsigned long, clone_flags,
2842 SYSCALL_DEFINE6(clone, unsigned long, clone_flags, unsigned long, newsp,
2848 SYSCALL_DEFINE5(clone, unsigned long, clone_flags, unsigned long, newsp,
2855 .flags = (lower_32_bits(clone_flags) & ~CSIGNAL),
2859 .exit_signal = (lower_32_bits(clone_flags) & CSIGNAL),