Lines Matching refs:ssid
261 bool cgroup_ssid_enabled(int ssid) in cgroup_ssid_enabled() argument
266 return static_key_enabled(cgroup_subsys_enabled_key[ssid]); in cgroup_ssid_enabled()
683 #define for_each_css(css, ssid, cgrp) \ argument
684 for ((ssid) = 0; (ssid) < CGROUP_SUBSYS_COUNT; (ssid)++) \
686 (cgrp)->subsys[(ssid)], \
698 #define for_each_e_css(css, ssid, cgrp) \ argument
699 for ((ssid) = 0; (ssid) < CGROUP_SUBSYS_COUNT; (ssid)++) \
701 cgroup_subsys[(ssid)]))) \
714 #define do_each_subsys_mask(ss, ssid, ss_mask) do { \ argument
717 (ssid) = 0; \
720 for_each_set_bit(ssid, &__ss_mask, CGROUP_SUBSYS_COUNT) { \
721 (ss) = cgroup_subsys[ssid]; \
963 int ssid; in put_css_set_locked() local
973 for_each_subsys(ss, ssid) { in put_css_set_locked()
974 list_del(&cset->e_cset_node[ssid]); in put_css_set_locked()
975 css_put(cset->subsys[ssid]); in put_css_set_locked()
1213 int ssid; in find_css_set() local
1273 for_each_subsys(ss, ssid) { in find_css_set()
1274 struct cgroup_subsys_state *css = cset->subsys[ssid]; in find_css_set()
1276 list_add_tail(&cset->e_cset_node[ssid], in find_css_set()
1277 &css->cgroup->e_csets[ssid]); in find_css_set()
1550 int ssid; in cgroup_calc_subtree_ss_mask() local
1559 do_each_subsys_mask(ss, ssid, cur_ss_mask) { in cgroup_calc_subtree_ss_mask()
1748 int ssid, ret; in rebind_subsystems() local
1753 do_each_subsys_mask(ss, ssid, ss_mask) { in rebind_subsystems()
1772 dfl_disable_ss_mask |= 1 << ssid; in rebind_subsystems()
1788 do_each_subsys_mask(ss, ssid, ss_mask) { in rebind_subsystems()
1799 src_root->subsys_mask &= ~(1 << ssid); in rebind_subsystems()
1805 RCU_INIT_POINTER(scgrp->subsys[ssid], NULL); in rebind_subsystems()
1806 rcu_assign_pointer(dcgrp->subsys[ssid], css); in rebind_subsystems()
1837 dst_root->subsys_mask |= 1 << ssid; in rebind_subsystems()
1839 static_branch_enable(cgroup_subsys_on_dfl_key[ssid]); in rebind_subsystems()
1841 dcgrp->subtree_control |= 1 << ssid; in rebind_subsystems()
1842 static_branch_disable(cgroup_subsys_on_dfl_key[ssid]); in rebind_subsystems()
1965 int ssid; in init_cgroup_housekeeping() local
1980 for_each_subsys(ss, ssid) in init_cgroup_housekeeping()
1981 INIT_LIST_HEAD(&cgrp->e_csets[ssid]); in init_cgroup_housekeeping()
2495 *dst_cssp = cset->mg_dst_cset->subsys[tset->ssid]; in cgroup_taskset_next()
2497 *dst_cssp = cset->subsys[tset->ssid]; in cgroup_taskset_next()
2525 int ssid, failed_ssid, ret; in cgroup_migrate_execute() local
2529 do_each_subsys_mask(ss, ssid, mgctx->ss_mask) { in cgroup_migrate_execute()
2531 tset->ssid = ssid; in cgroup_migrate_execute()
2534 failed_ssid = ssid; in cgroup_migrate_execute()
2576 do_each_subsys_mask(ss, ssid, mgctx->ss_mask) { in cgroup_migrate_execute()
2578 tset->ssid = ssid; in cgroup_migrate_execute()
2590 do_each_subsys_mask(ss, ssid, mgctx->ss_mask) { in cgroup_migrate_execute()
2591 if (ssid == failed_ssid) in cgroup_migrate_execute()
2594 tset->ssid = ssid; in cgroup_migrate_execute()
2765 int ssid; in cgroup_migrate_prepare_dst() local
2795 for_each_subsys(ss, ssid) in cgroup_migrate_prepare_dst()
2796 if (src_cset->subsys[ssid] != dst_cset->subsys[ssid]) in cgroup_migrate_prepare_dst()
2797 mgctx->ss_mask |= 1 << ssid; in cgroup_migrate_prepare_dst()
2950 int ssid; in cgroup_procs_write_finish() local
2957 for_each_subsys(ss, ssid) in cgroup_procs_write_finish()
2966 int ssid; in cgroup_print_ss_mask() local
2968 do_each_subsys_mask(ss, ssid, ss_mask) { in cgroup_print_ss_mask()
3072 int ssid; in cgroup_lock_and_drain_offline() local
3078 for_each_subsys(ss, ssid) { in cgroup_lock_and_drain_offline()
3190 int ssid, ret; in cgroup_apply_control_enable() local
3193 for_each_subsys(ss, ssid) { in cgroup_apply_control_enable()
3236 int ssid; in cgroup_apply_control_disable() local
3239 for_each_subsys(ss, ssid) { in cgroup_apply_control_disable()
3364 int ssid, ret; in cgroup_subtree_control_write() local
3374 do_each_subsys_mask(ss, ssid, ~cgrp_dfl_inhibit_ss_mask) { in cgroup_subtree_control_write()
3375 if (!cgroup_ssid_enabled(ssid) || in cgroup_subtree_control_write()
3380 enable |= 1 << ssid; in cgroup_subtree_control_write()
3381 disable &= ~(1 << ssid); in cgroup_subtree_control_write()
3383 disable |= 1 << ssid; in cgroup_subtree_control_write()
3384 enable &= ~(1 << ssid); in cgroup_subtree_control_write()
3390 if (ssid == CGROUP_SUBSYS_COUNT) in cgroup_subtree_control_write()
3398 for_each_subsys(ss, ssid) { in cgroup_subtree_control_write()
3399 if (enable & (1 << ssid)) { in cgroup_subtree_control_write()
3400 if (cgrp->subtree_control & (1 << ssid)) { in cgroup_subtree_control_write()
3401 enable &= ~(1 << ssid); in cgroup_subtree_control_write()
3405 if (!(cgroup_control(cgrp) & (1 << ssid))) { in cgroup_subtree_control_write()
3409 } else if (disable & (1 << ssid)) { in cgroup_subtree_control_write()
3410 if (!(cgrp->subtree_control & (1 << ssid))) { in cgroup_subtree_control_write()
3411 disable &= ~(1 << ssid); in cgroup_subtree_control_write()
3417 if (child->subtree_control & (1 << ssid)) { in cgroup_subtree_control_write()
3654 struct cgroup *cgrp, int ssid) in cgroup_extra_stat_show() argument
3656 struct cgroup_subsys *ss = cgroup_subsys[ssid]; in cgroup_extra_stat_show()
5727 int ssid; in cgroup_destroy_locked() local
5760 for_each_css(css, ssid, cgrp) in cgroup_destroy_locked()
5916 int ssid; in cgroup_init() local
5945 for_each_subsys(ss, ssid) { in cgroup_init()
5957 list_add_tail(&init_css_set.e_cset_node[ssid], in cgroup_init()
5958 &cgrp_dfl_root.cgrp.e_csets[ssid]); in cgroup_init()
5965 if (!cgroup_ssid_enabled(ssid)) in cgroup_init()
5968 if (cgroup1_ssid_disabled(ssid)) in cgroup_init()
5993 ss->bind(init_css_set.subsys[ssid]); in cgroup_init()
5996 css_populate_dir(init_css_set.subsys[ssid]); in cgroup_init()
6097 int ssid, count = 0; in proc_cgroup_show() local
6104 for_each_subsys(ss, ssid) in proc_cgroup_show()
6105 if (root->subsys_mask & (1 << ssid)) in proc_cgroup_show()
6504 int ssid; in cgroup_release() local
6506 do_each_subsys_mask(ss, ssid, have_release_callback) { in cgroup_release()
6852 int ssid; in delegate_show() local
6858 for_each_subsys(ss, ssid) in delegate_show()
6861 cgroup_subsys_name[ssid]); in delegate_show()