Lines Matching refs:kargs
6408 static int cgroup_css_set_fork(struct kernel_clone_args *kargs) in cgroup_css_set_fork() argument
6417 if (kargs->flags & CLONE_INTO_CGROUP) in cgroup_css_set_fork()
6427 if (!(kargs->flags & CLONE_INTO_CGROUP)) { in cgroup_css_set_fork()
6428 kargs->cset = cset; in cgroup_css_set_fork()
6432 f = fget_raw(kargs->cgroup); in cgroup_css_set_fork()
6475 !(kargs->flags & CLONE_THREAD), in cgroup_css_set_fork()
6480 kargs->cset = find_css_set(cset, dst_cgrp); in cgroup_css_set_fork()
6481 if (!kargs->cset) { in cgroup_css_set_fork()
6488 kargs->cgrp = dst_cgrp; in cgroup_css_set_fork()
6499 if (kargs->cset) in cgroup_css_set_fork()
6500 put_css_set(kargs->cset); in cgroup_css_set_fork()
6511 static void cgroup_css_set_put_fork(struct kernel_clone_args *kargs) in cgroup_css_set_put_fork() argument
6514 struct cgroup *cgrp = kargs->cgrp; in cgroup_css_set_put_fork()
6515 struct css_set *cset = kargs->cset; in cgroup_css_set_put_fork()
6521 kargs->cset = NULL; in cgroup_css_set_put_fork()
6524 if (kargs->flags & CLONE_INTO_CGROUP) { in cgroup_css_set_put_fork()
6528 kargs->cgrp = NULL; in cgroup_css_set_put_fork()
6544 int cgroup_can_fork(struct task_struct *child, struct kernel_clone_args *kargs) in cgroup_can_fork() argument
6549 ret = cgroup_css_set_fork(kargs); in cgroup_can_fork()
6554 ret = ss->can_fork(child, kargs->cset); in cgroup_can_fork()
6566 ss->cancel_fork(child, kargs->cset); in cgroup_can_fork()
6569 cgroup_css_set_put_fork(kargs); in cgroup_can_fork()
6584 struct kernel_clone_args *kargs) in cgroup_cancel_fork() argument
6591 ss->cancel_fork(child, kargs->cset); in cgroup_cancel_fork()
6593 cgroup_css_set_put_fork(kargs); in cgroup_cancel_fork()
6605 struct kernel_clone_args *kargs) in cgroup_post_fork() argument
6614 cset = kargs->cset; in cgroup_post_fork()
6615 kargs->cset = NULL; in cgroup_post_fork()
6621 if (kargs->cgrp) in cgroup_post_fork()
6622 cgrp_flags = kargs->cgrp->flags; in cgroup_post_fork()
6674 if (kargs->flags & CLONE_NEWCGROUP) { in cgroup_post_fork()
6686 cgroup_css_set_put_fork(kargs); in cgroup_post_fork()