• Home
  • Raw
  • Download

Lines Matching refs:dst_cgrp

2627 int cgroup_migrate_vet_dst(struct cgroup *dst_cgrp)  in cgroup_migrate_vet_dst()  argument
2630 if (!cgroup_on_dfl(dst_cgrp)) in cgroup_migrate_vet_dst()
2634 if (!cgroup_is_valid_domain(dst_cgrp->dom_cgrp)) in cgroup_migrate_vet_dst()
2638 if (cgroup_is_mixable(dst_cgrp)) in cgroup_migrate_vet_dst()
2645 if (cgroup_can_be_thread_root(dst_cgrp) || cgroup_is_threaded(dst_cgrp)) in cgroup_migrate_vet_dst()
2649 if (dst_cgrp->subtree_control) in cgroup_migrate_vet_dst()
2708 struct cgroup *dst_cgrp, in cgroup_migrate_add_src() argument
2724 src_cgrp = cset_cgroup_from_root(src_cset, dst_cgrp->root); in cgroup_migrate_add_src()
2735 src_cset->mg_dst_cgrp = dst_cgrp; in cgroup_migrate_add_src()
2853 int cgroup_attach_task(struct cgroup *dst_cgrp, struct task_struct *leader, in cgroup_attach_task() argument
2865 cgroup_migrate_add_src(task_css_set(task), dst_cgrp, &mgctx); in cgroup_attach_task()
2880 TRACE_CGROUP_PATH(attach_task, dst_cgrp, leader, threadgroup); in cgroup_attach_task()
2887 struct cgroup *dst_cgrp) in cgroup_procs_write_start() argument
2924 trace_android_rvh_cgroup_force_kthread_migration(tsk, dst_cgrp, &force_migration); in cgroup_procs_write_start()
4949 struct cgroup *dst_cgrp, in cgroup_procs_write_permission() argument
4959 while (!cgroup_is_descendant(dst_cgrp, com_cgrp)) in cgroup_procs_write_permission()
4973 !cgroup_is_descendant(dst_cgrp, ns->root_cset->dfl_cgrp))) in cgroup_procs_write_permission()
4980 struct cgroup *dst_cgrp, in cgroup_attach_permissions() argument
4986 ret = cgroup_procs_write_permission(src_cgrp, dst_cgrp, sb, ns); in cgroup_attach_permissions()
4990 ret = cgroup_migrate_vet_dst(dst_cgrp); in cgroup_attach_permissions()
4994 if (!threadgroup && (src_cgrp->dom_cgrp != dst_cgrp->dom_cgrp)) in cgroup_attach_permissions()
5004 struct cgroup *src_cgrp, *dst_cgrp; in __cgroup_procs_write() local
5010 dst_cgrp = cgroup_kn_lock_live(of->kn, false); in __cgroup_procs_write()
5011 if (!dst_cgrp) in __cgroup_procs_write()
5014 task = cgroup_procs_write_start(buf, threadgroup, &threadgroup_locked, dst_cgrp); in __cgroup_procs_write()
5030 ret = cgroup_attach_permissions(src_cgrp, dst_cgrp, in __cgroup_procs_write()
5037 ret = cgroup_attach_task(dst_cgrp, task, threadgroup); in __cgroup_procs_write()
6206 struct cgroup *dst_cgrp = NULL; in cgroup_css_set_fork() local
6233 dst_cgrp = cgroup_get_from_file(f); in cgroup_css_set_fork()
6234 if (IS_ERR(dst_cgrp)) { in cgroup_css_set_fork()
6235 ret = PTR_ERR(dst_cgrp); in cgroup_css_set_fork()
6236 dst_cgrp = NULL; in cgroup_css_set_fork()
6240 if (cgroup_is_dead(dst_cgrp)) { in cgroup_css_set_fork()
6250 ret = cgroup_may_write(dst_cgrp, sb); in cgroup_css_set_fork()
6254 ret = cgroup_attach_permissions(cset->dfl_cgrp, dst_cgrp, sb, in cgroup_css_set_fork()
6260 kargs->cset = find_css_set(cset, dst_cgrp); in cgroup_css_set_fork()
6268 kargs->cgrp = dst_cgrp; in cgroup_css_set_fork()
6276 if (dst_cgrp) in cgroup_css_set_fork()
6277 cgroup_put(dst_cgrp); in cgroup_css_set_fork()