Lines Matching refs:css

114 	struct cgroup_subsys_state css;  member
232 static inline struct cpuset *css_cs(struct cgroup_subsys_state *css) in css_cs() argument
234 return css ? container_of(css, struct cpuset, css) : NULL; in css_cs()
245 return css_cs(cs->css.parent); in parent_cs()
263 return test_bit(CS_ONLINE, &cs->flags) && !css_is_dying(&cs->css); in is_cpuset_online()
350 css_for_each_child((pos_css), &(parent_cs)->css) \
365 css_for_each_descendant_pre((pos_css), &(root_cs)->css) \
467 struct cgroup_subsys_state *css; in partition_is_populated() local
470 if (cs->css.cgroup->nr_populated_csets) in partition_is_populated()
473 return cgroup_is_populated(cs->css.cgroup); in partition_is_populated()
476 cpuset_for_each_child(child, css, cs) { in partition_is_populated()
481 if (cgroup_is_populated(child->css.cgroup)) { in partition_is_populated()
682 struct cgroup_subsys_state *css; in validate_change_legacy() local
690 cpuset_for_each_child(c, css, cur) in validate_change_legacy()
727 struct cgroup_subsys_state *css; in validate_change() local
749 if ((cgroup_is_populated(cur->css.cgroup) || cur->attach_in_progress)) { in validate_change()
773 cpuset_for_each_child(c, css, par) { in validate_change()
1070 css_task_iter_start(&cs->css, 0, &it); in update_tasks_root_domain()
1102 css_get(&cs->css); in rebuild_root_domains()
1109 css_put(&cs->css); in rebuild_root_domains()
1215 css_task_iter_start(&cs->css, 0, &it); in update_tasks_cpumask()
1614 if (!css_tryget_online(&cp->css)) in update_cpumasks_hier()
1675 css_put(&cp->css); in update_cpumasks_hier()
1711 if (!css_tryget_online(&sibling->css)) in update_sibling_cpumasks()
1717 css_put(&sibling->css); in update_sibling_cpumasks()
1775 struct cgroup_subsys_state *css; in update_cpumask() local
1787 cpuset_for_each_child(cp, css, parent) in update_cpumask()
1960 css_task_iter_start(&cs->css, 0, &it); in update_tasks_nodemask()
2027 if (!css_tryget_online(&cp->css)) in update_nodemasks_hier()
2041 css_put(&cp->css); in update_nodemasks_hier()
2154 css_task_iter_start(&cs->css, 0, &it); in update_tasks_flags()
2328 if (!list_empty(&cs->css.children)) in update_prstate()
2442 struct cgroup_subsys_state *css; in cpuset_can_attach() local
2448 cpuset_attach_old_cs = task_cs(cgroup_taskset_first(tset, &css)); in cpuset_can_attach()
2449 cs = css_cs(css); in cpuset_can_attach()
2465 cgroup_taskset_for_each(task, css, tset) { in cpuset_can_attach()
2487 struct cgroup_subsys_state *css; in cpuset_cancel_attach() local
2489 cgroup_taskset_first(tset, &css); in cpuset_cancel_attach()
2492 css_cs(css)->attach_in_progress--; in cpuset_cancel_attach()
2509 struct cgroup_subsys_state *css; in cpuset_attach() local
2513 cgroup_taskset_first(tset, &css); in cpuset_attach()
2514 cs = css_cs(css); in cpuset_attach()
2521 cgroup_taskset_for_each(task, css, tset) { in cpuset_attach()
2541 cgroup_taskset_for_each_leader(leader, css, tset) { in cpuset_attach()
2593 static int cpuset_write_u64(struct cgroup_subsys_state *css, struct cftype *cft, in cpuset_write_u64() argument
2596 struct cpuset *cs = css_cs(css); in cpuset_write_u64()
2642 static int cpuset_write_s64(struct cgroup_subsys_state *css, struct cftype *cft, in cpuset_write_s64() argument
2645 struct cpuset *cs = css_cs(css); in cpuset_write_s64()
2699 css_get(&cs->css); in cpuset_write_resmask()
2731 css_put(&cs->css); in cpuset_write_resmask()
2776 static u64 cpuset_read_u64(struct cgroup_subsys_state *css, struct cftype *cft) in cpuset_read_u64() argument
2778 struct cpuset *cs = css_cs(css); in cpuset_read_u64()
2807 static s64 cpuset_read_s64(struct cgroup_subsys_state *css, struct cftype *cft) in cpuset_read_s64() argument
2809 struct cpuset *cs = css_cs(css); in cpuset_read_s64()
2874 css_get(&cs->css); in sched_partition_write()
2884 css_put(&cs->css); in sched_partition_write()
3060 return &top_cpuset.css; in cpuset_css_alloc()
3081 return &cs->css; in cpuset_css_alloc()
3084 static int cpuset_css_online(struct cgroup_subsys_state *css) in cpuset_css_online() argument
3086 struct cpuset *cs = css_cs(css); in cpuset_css_online()
3114 if (!test_bit(CGRP_CPUSET_CLONE_CHILDREN, &css->cgroup->flags)) in cpuset_css_online()
3162 static void cpuset_css_offline(struct cgroup_subsys_state *css) in cpuset_css_offline() argument
3164 struct cpuset *cs = css_cs(css); in cpuset_css_offline()
3190 static void cpuset_css_free(struct cgroup_subsys_state *css) in cpuset_css_free() argument
3192 struct cpuset *cs = css_cs(css); in cpuset_css_free()
3294 if (cgroup_transfer_tasks(parent->css.cgroup, cs->css.cgroup)) { in remove_tasks_in_empty_cpuset()
3296 pr_cont_cgroup_name(cs->css.cgroup); in remove_tasks_in_empty_cpuset()
3585 if (cs == &top_cpuset || !css_tryget_online(&cs->css)) in cpuset_hotplug_workfn()
3592 css_put(&cs->css); in cpuset_hotplug_workfn()
3937 cgrp = task_cs(current)->css.cgroup; in cpuset_print_current_mems_allowed()
3993 struct cgroup_subsys_state *css; in proc_cpuset_show() local
4001 css = task_get_css(tsk, cpuset_cgrp_id); in proc_cpuset_show()
4002 retval = cgroup_path_ns(css->cgroup, buf, PATH_MAX, in proc_cpuset_show()
4004 css_put(css); in proc_cpuset_show()