Lines Matching refs:ssid

257 bool cgroup_ssid_enabled(int ssid)  in cgroup_ssid_enabled()  argument
262 return static_key_enabled(cgroup_subsys_enabled_key[ssid]); in cgroup_ssid_enabled()
679 #define for_each_css(css, ssid, cgrp) \ argument
680 for ((ssid) = 0; (ssid) < CGROUP_SUBSYS_COUNT; (ssid)++) \
682 (cgrp)->subsys[(ssid)], \
694 #define for_each_e_css(css, ssid, cgrp) \ argument
695 for ((ssid) = 0; (ssid) < CGROUP_SUBSYS_COUNT; (ssid)++) \
697 cgroup_subsys[(ssid)]))) \
710 #define do_each_subsys_mask(ss, ssid, ss_mask) do { \ argument
713 (ssid) = 0; \
716 for_each_set_bit(ssid, &__ss_mask, CGROUP_SUBSYS_COUNT) { \
717 (ss) = cgroup_subsys[ssid]; \
958 int ssid; in put_css_set_locked() local
968 for_each_subsys(ss, ssid) { in put_css_set_locked()
969 list_del(&cset->e_cset_node[ssid]); in put_css_set_locked()
970 css_put(cset->subsys[ssid]); in put_css_set_locked()
1208 int ssid; in find_css_set() local
1267 for_each_subsys(ss, ssid) { in find_css_set()
1268 struct cgroup_subsys_state *css = cset->subsys[ssid]; in find_css_set()
1270 list_add_tail(&cset->e_cset_node[ssid], in find_css_set()
1271 &css->cgroup->e_csets[ssid]); in find_css_set()
1544 int ssid; in cgroup_calc_subtree_ss_mask() local
1553 do_each_subsys_mask(ss, ssid, cur_ss_mask) { in cgroup_calc_subtree_ss_mask()
1742 int ssid, i, ret; in rebind_subsystems() local
1747 do_each_subsys_mask(ss, ssid, ss_mask) { in rebind_subsystems()
1766 dfl_disable_ss_mask |= 1 << ssid; in rebind_subsystems()
1782 do_each_subsys_mask(ss, ssid, ss_mask) { in rebind_subsystems()
1792 src_root->subsys_mask &= ~(1 << ssid); in rebind_subsystems()
1798 RCU_INIT_POINTER(scgrp->subsys[ssid], NULL); in rebind_subsystems()
1799 rcu_assign_pointer(dcgrp->subsys[ssid], css); in rebind_subsystems()
1816 dst_root->subsys_mask |= 1 << ssid; in rebind_subsystems()
1818 static_branch_enable(cgroup_subsys_on_dfl_key[ssid]); in rebind_subsystems()
1820 dcgrp->subtree_control |= 1 << ssid; in rebind_subsystems()
1821 static_branch_disable(cgroup_subsys_on_dfl_key[ssid]); in rebind_subsystems()
1944 int ssid; in init_cgroup_housekeeping() local
1959 for_each_subsys(ss, ssid) in init_cgroup_housekeeping()
1960 INIT_LIST_HEAD(&cgrp->e_csets[ssid]); in init_cgroup_housekeeping()
2432 *dst_cssp = cset->mg_dst_cset->subsys[tset->ssid]; in cgroup_taskset_next()
2434 *dst_cssp = cset->subsys[tset->ssid]; in cgroup_taskset_next()
2461 int ssid, failed_ssid, ret; in cgroup_migrate_execute() local
2465 do_each_subsys_mask(ss, ssid, mgctx->ss_mask) { in cgroup_migrate_execute()
2467 tset->ssid = ssid; in cgroup_migrate_execute()
2470 failed_ssid = ssid; in cgroup_migrate_execute()
2512 do_each_subsys_mask(ss, ssid, mgctx->ss_mask) { in cgroup_migrate_execute()
2514 tset->ssid = ssid; in cgroup_migrate_execute()
2525 do_each_subsys_mask(ss, ssid, mgctx->ss_mask) { in cgroup_migrate_execute()
2526 if (ssid == failed_ssid) in cgroup_migrate_execute()
2529 tset->ssid = ssid; in cgroup_migrate_execute()
2694 int ssid; in cgroup_migrate_prepare_dst() local
2724 for_each_subsys(ss, ssid) in cgroup_migrate_prepare_dst()
2725 if (src_cset->subsys[ssid] != dst_cset->subsys[ssid]) in cgroup_migrate_prepare_dst()
2726 mgctx->ss_mask |= 1 << ssid; in cgroup_migrate_prepare_dst()
2882 int ssid; in cgroup_procs_write_finish() local
2889 for_each_subsys(ss, ssid) in cgroup_procs_write_finish()
2898 int ssid; in cgroup_print_ss_mask() local
2900 do_each_subsys_mask(ss, ssid, ss_mask) { in cgroup_print_ss_mask()
2995 int ssid; in cgroup_lock_and_drain_offline() local
3001 for_each_subsys(ss, ssid) { in cgroup_lock_and_drain_offline()
3113 int ssid, ret; in cgroup_apply_control_enable() local
3116 for_each_subsys(ss, ssid) { in cgroup_apply_control_enable()
3159 int ssid; in cgroup_apply_control_disable() local
3162 for_each_subsys(ss, ssid) { in cgroup_apply_control_disable()
3287 int ssid, ret; in cgroup_subtree_control_write() local
3297 do_each_subsys_mask(ss, ssid, ~cgrp_dfl_inhibit_ss_mask) { in cgroup_subtree_control_write()
3298 if (!cgroup_ssid_enabled(ssid) || in cgroup_subtree_control_write()
3303 enable |= 1 << ssid; in cgroup_subtree_control_write()
3304 disable &= ~(1 << ssid); in cgroup_subtree_control_write()
3306 disable |= 1 << ssid; in cgroup_subtree_control_write()
3307 enable &= ~(1 << ssid); in cgroup_subtree_control_write()
3313 if (ssid == CGROUP_SUBSYS_COUNT) in cgroup_subtree_control_write()
3321 for_each_subsys(ss, ssid) { in cgroup_subtree_control_write()
3322 if (enable & (1 << ssid)) { in cgroup_subtree_control_write()
3323 if (cgrp->subtree_control & (1 << ssid)) { in cgroup_subtree_control_write()
3324 enable &= ~(1 << ssid); in cgroup_subtree_control_write()
3328 if (!(cgroup_control(cgrp) & (1 << ssid))) { in cgroup_subtree_control_write()
3332 } else if (disable & (1 << ssid)) { in cgroup_subtree_control_write()
3333 if (!(cgrp->subtree_control & (1 << ssid))) { in cgroup_subtree_control_write()
3334 disable &= ~(1 << ssid); in cgroup_subtree_control_write()
3340 if (child->subtree_control & (1 << ssid)) { in cgroup_subtree_control_write()
3577 struct cgroup *cgrp, int ssid) in cgroup_extra_stat_show() argument
3579 struct cgroup_subsys *ss = cgroup_subsys[ssid]; in cgroup_extra_stat_show()
5642 int ssid; in cgroup_destroy_locked() local
5675 for_each_css(css, ssid, cgrp) in cgroup_destroy_locked()
5831 int ssid; in cgroup_init() local
5860 for_each_subsys(ss, ssid) { in cgroup_init()
5872 list_add_tail(&init_css_set.e_cset_node[ssid], in cgroup_init()
5873 &cgrp_dfl_root.cgrp.e_csets[ssid]); in cgroup_init()
5880 if (!cgroup_ssid_enabled(ssid)) in cgroup_init()
5883 if (cgroup1_ssid_disabled(ssid)) in cgroup_init()
5908 ss->bind(init_css_set.subsys[ssid]); in cgroup_init()
5911 css_populate_dir(init_css_set.subsys[ssid]); in cgroup_init()
6009 int ssid, count = 0; in proc_cgroup_show() local
6016 for_each_subsys(ss, ssid) in proc_cgroup_show()
6017 if (root->subsys_mask & (1 << ssid)) in proc_cgroup_show()
6414 int ssid; in cgroup_release() local
6416 do_each_subsys_mask(ss, ssid, have_release_callback) { in cgroup_release()
6720 int ssid; in delegate_show() local
6726 for_each_subsys(ss, ssid) in delegate_show()
6729 cgroup_subsys_name[ssid]); in delegate_show()