• Home
  • Raw
  • Download

Lines Matching refs:args

2107 					struct kernel_clone_args *args)  in copy_process()  argument
2113 const u64 clone_flags = args->flags; in copy_process()
2203 if (args->kthread) in copy_process()
2205 if (args->io_thread) { in copy_process()
2216 p->set_child_tid = (clone_flags & CLONE_CHILD_SETTID) ? args->child_tid : NULL; in copy_process()
2220 p->clear_child_tid = (clone_flags & CLONE_CHILD_CLEARTID) ? args->child_tid : NULL; in copy_process()
2296 if (args->kthread) { in copy_process()
2379 retval = copy_thread(p, args); in copy_process()
2386 pid = alloc_pid(p->nsproxy->pid_ns_for_children, args->set_tid, in copy_process()
2387 args->set_tid_size); in copy_process()
2415 retval = put_user(pidfd, args->pidfd); in copy_process()
2474 retval = cgroup_can_fork(p, args); in copy_process()
2487 sched_cgroup_fork(p, args); in copy_process()
2517 p->exit_signal = args->exit_signal; in copy_process()
2605 cgroup_post_fork(p, args); in copy_process()
2619 cgroup_cancel_fork(p, args); in copy_process()
2698 struct kernel_clone_args args = { in fork_idle() local
2706 task = copy_process(&init_struct_pid, 0, cpu_to_node(cpu), &args); in fork_idle()
2725 struct kernel_clone_args args = { in create_io_thread() local
2734 return copy_process(NULL, 0, node, &args); in create_io_thread()
2745 pid_t kernel_clone(struct kernel_clone_args *args) in kernel_clone() argument
2747 u64 clone_flags = args->flags; in kernel_clone()
2763 if ((args->flags & CLONE_PIDFD) && in kernel_clone()
2764 (args->flags & CLONE_PARENT_SETTID) && in kernel_clone()
2765 (args->pidfd == args->parent_tid)) in kernel_clone()
2777 else if (args->exit_signal != SIGCHLD) in kernel_clone()
2786 p = copy_process(NULL, trace, NUMA_NO_NODE, args); in kernel_clone()
2804 put_user(nr, args->parent_tid); in kernel_clone()
2839 struct kernel_clone_args args = { in kernel_thread() local
2848 return kernel_clone(&args); in kernel_thread()
2856 struct kernel_clone_args args = { in user_mode_thread() local
2864 return kernel_clone(&args); in user_mode_thread()
2871 struct kernel_clone_args args = { in SYSCALL_DEFINE0() local
2875 return kernel_clone(&args); in SYSCALL_DEFINE0()
2886 struct kernel_clone_args args = { in SYSCALL_DEFINE0() local
2891 return kernel_clone(&args); in SYSCALL_DEFINE0()
2919 struct kernel_clone_args args = { in SYSCALL_DEFINE5() local
2929 return kernel_clone(&args); in SYSCALL_DEFINE5()
2940 struct clone_args args; in copy_clone_args_from_user() local
2956 err = copy_struct_from_user(&args, sizeof(args), uargs, usize); in copy_clone_args_from_user()
2960 if (unlikely(args.set_tid_size > MAX_PID_NS_LEVEL)) in copy_clone_args_from_user()
2963 if (unlikely(!args.set_tid && args.set_tid_size > 0)) in copy_clone_args_from_user()
2966 if (unlikely(args.set_tid && args.set_tid_size == 0)) in copy_clone_args_from_user()
2973 if (unlikely((args.exit_signal & ~((u64)CSIGNAL)) || in copy_clone_args_from_user()
2974 !valid_signal(args.exit_signal))) in copy_clone_args_from_user()
2977 if ((args.flags & CLONE_INTO_CGROUP) && in copy_clone_args_from_user()
2978 (args.cgroup > INT_MAX || usize < CLONE_ARGS_SIZE_VER2)) in copy_clone_args_from_user()
2982 .flags = args.flags, in copy_clone_args_from_user()
2983 .pidfd = u64_to_user_ptr(args.pidfd), in copy_clone_args_from_user()
2984 .child_tid = u64_to_user_ptr(args.child_tid), in copy_clone_args_from_user()
2985 .parent_tid = u64_to_user_ptr(args.parent_tid), in copy_clone_args_from_user()
2986 .exit_signal = args.exit_signal, in copy_clone_args_from_user()
2987 .stack = args.stack, in copy_clone_args_from_user()
2988 .stack_size = args.stack_size, in copy_clone_args_from_user()
2989 .tls = args.tls, in copy_clone_args_from_user()
2990 .set_tid_size = args.set_tid_size, in copy_clone_args_from_user()
2991 .cgroup = args.cgroup, in copy_clone_args_from_user()
2994 if (args.set_tid && in copy_clone_args_from_user()
2995 copy_from_user(kset_tid, u64_to_user_ptr(args.set_tid), in copy_clone_args_from_user()