Home
last modified time | relevance | path

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

/linux-6.12.1/kernel/
Dfork.c2933 noinline static int copy_clone_args_from_user(struct kernel_clone_args *kargs, in copy_clone_args_from_user() argument
2939 pid_t *kset_tid = kargs->set_tid; in copy_clone_args_from_user()
2979 *kargs = (struct kernel_clone_args){ in copy_clone_args_from_user()
2994 (kargs->set_tid_size * sizeof(pid_t)))) in copy_clone_args_from_user()
2997 kargs->set_tid = kset_tid; in copy_clone_args_from_user()
3010 static inline bool clone3_stack_valid(struct kernel_clone_args *kargs) in clone3_stack_valid() argument
3012 if (kargs->stack == 0) { in clone3_stack_valid()
3013 if (kargs->stack_size > 0) in clone3_stack_valid()
3016 if (kargs->stack_size == 0) in clone3_stack_valid()
3019 if (!access_ok((void __user *)kargs->stack, kargs->stack_size)) in clone3_stack_valid()
[all …]
/linux-6.12.1/include/linux/
Dcgroup.h126 struct kernel_clone_args *kargs);
128 struct kernel_clone_args *kargs);
130 struct kernel_clone_args *kargs);
652 struct kernel_clone_args *kargs) { return 0; } in cgroup_can_fork() argument
654 struct kernel_clone_args *kargs) {} in cgroup_cancel_fork() argument
656 struct kernel_clone_args *kargs) {} in cgroup_post_fork() argument
/linux-6.12.1/include/linux/sched/
Dtask.h66 extern int sched_cgroup_fork(struct task_struct *p, struct kernel_clone_args *kargs);
97 extern pid_t kernel_clone(struct kernel_clone_args *kargs);
/linux-6.12.1/kernel/cgroup/
Dcgroup.c6472 static int cgroup_css_set_fork(struct kernel_clone_args *kargs) in cgroup_css_set_fork() argument
6481 if (kargs->flags & CLONE_INTO_CGROUP) in cgroup_css_set_fork()
6491 if (!(kargs->flags & CLONE_INTO_CGROUP)) { in cgroup_css_set_fork()
6492 kargs->cset = cset; in cgroup_css_set_fork()
6496 f = fget_raw(kargs->cgroup); in cgroup_css_set_fork()
6539 !(kargs->flags & CLONE_THREAD), in cgroup_css_set_fork()
6544 kargs->cset = find_css_set(cset, dst_cgrp); in cgroup_css_set_fork()
6545 if (!kargs->cset) { in cgroup_css_set_fork()
6552 kargs->cgrp = dst_cgrp; in cgroup_css_set_fork()
6563 if (kargs->cset) in cgroup_css_set_fork()
[all …]
/linux-6.12.1/kernel/sched/
Dcore.c4739 int sched_cgroup_fork(struct task_struct *p, struct kernel_clone_args *kargs) in sched_cgroup_fork() argument
4751 tg = container_of(kargs->cset->subsys[cpu_cgrp_id], in sched_cgroup_fork()