Home
last modified time | relevance | path

Searched refs:kargs (Results 1 – 5 of 5) sorted by relevance

/linux-6.6.21/kernel/
Dfork.c3058 noinline static int copy_clone_args_from_user(struct kernel_clone_args *kargs, in copy_clone_args_from_user() argument
3064 pid_t *kset_tid = kargs->set_tid; in copy_clone_args_from_user()
3104 *kargs = (struct kernel_clone_args){ in copy_clone_args_from_user()
3119 (kargs->set_tid_size * sizeof(pid_t)))) in copy_clone_args_from_user()
3122 kargs->set_tid = kset_tid; in copy_clone_args_from_user()
3135 static inline bool clone3_stack_valid(struct kernel_clone_args *kargs) in clone3_stack_valid() argument
3137 if (kargs->stack == 0) { in clone3_stack_valid()
3138 if (kargs->stack_size > 0) in clone3_stack_valid()
3141 if (kargs->stack_size == 0) in clone3_stack_valid()
3144 if (!access_ok((void __user *)kargs->stack, kargs->stack_size)) in clone3_stack_valid()
[all …]
/linux-6.6.21/include/linux/
Dcgroup.h127 struct kernel_clone_args *kargs);
129 struct kernel_clone_args *kargs);
131 struct kernel_clone_args *kargs);
654 struct kernel_clone_args *kargs) { return 0; } in cgroup_can_fork() argument
656 struct kernel_clone_args *kargs) {} in cgroup_cancel_fork() argument
658 struct kernel_clone_args *kargs) {} in cgroup_post_fork() argument
/linux-6.6.21/include/linux/sched/
Dtask.h64 extern void sched_cgroup_fork(struct task_struct *p, struct kernel_clone_args *kargs);
94 extern pid_t kernel_clone(struct kernel_clone_args *kargs);
/linux-6.6.21/kernel/cgroup/
Dcgroup.c6373 static int cgroup_css_set_fork(struct kernel_clone_args *kargs) in cgroup_css_set_fork() argument
6382 if (kargs->flags & CLONE_INTO_CGROUP) in cgroup_css_set_fork()
6392 if (!(kargs->flags & CLONE_INTO_CGROUP)) { in cgroup_css_set_fork()
6393 kargs->cset = cset; in cgroup_css_set_fork()
6397 f = fget_raw(kargs->cgroup); in cgroup_css_set_fork()
6440 !(kargs->flags & CLONE_THREAD), in cgroup_css_set_fork()
6445 kargs->cset = find_css_set(cset, dst_cgrp); in cgroup_css_set_fork()
6446 if (!kargs->cset) { in cgroup_css_set_fork()
6453 kargs->cgrp = dst_cgrp; in cgroup_css_set_fork()
6464 if (kargs->cset) in cgroup_css_set_fork()
[all …]
/linux-6.6.21/kernel/sched/
Dcore.c4795 void sched_cgroup_fork(struct task_struct *p, struct kernel_clone_args *kargs) in sched_cgroup_fork() argument
4807 tg = container_of(kargs->cset->subsys[cpu_cgrp_id], in sched_cgroup_fork()