Lines Matching refs:css
89 struct cgroup_subsys_state css; member
202 static inline struct cpuset *css_cs(struct cgroup_subsys_state *css) in css_cs() argument
204 return css ? container_of(css, struct cpuset, css) : NULL; in css_cs()
215 return css_cs(cs->css.parent); in parent_cs()
233 return test_bit(CS_ONLINE, &cs->flags) && !css_is_dying(&cs->css); in is_cpuset_online()
302 css_for_each_child((pos_css), &(parent_cs)->css) \
317 css_for_each_descendant_pre((pos_css), &(root_cs)->css) \
615 struct cgroup_subsys_state *css; in validate_change() local
623 cpuset_for_each_child(c, css, cur) in validate_change()
644 cpuset_for_each_child(c, css, par) { in validate_change()
660 if ((cgroup_is_populated(cur->css.cgroup) || cur->attach_in_progress)) { in validate_change()
965 css_task_iter_start(&cs->css, 0, &it); in update_tasks_root_domain()
997 css_get(&cs->css); in rebuild_root_domains()
1004 css_put(&cs->css); in rebuild_root_domains()
1109 css_task_iter_start(&cs->css, 0, &it); in update_tasks_cpumask()
1216 if ((cmd != partcmd_update) && css_has_online_children(&cpuset->css)) in update_parent_subparts_cpumask()
1454 if (!css_tryget_online(&cp->css)) in update_cpumasks_hier()
1513 css_put(&cp->css); in update_cpumasks_hier()
1750 css_task_iter_start(&cs->css, 0, &it); in update_tasks_nodemask()
1817 if (!css_tryget_online(&cp->css)) in update_nodemasks_hier()
1831 css_put(&cp->css); in update_nodemasks_hier()
1944 css_task_iter_start(&cs->css, 0, &it); in update_tasks_flags()
2195 struct cgroup_subsys_state *css; in cpuset_can_attach() local
2201 cpuset_attach_old_cs = task_cs(cgroup_taskset_first(tset, &css)); in cpuset_can_attach()
2202 cs = css_cs(css); in cpuset_can_attach()
2212 cgroup_taskset_for_each(task, css, tset) { in cpuset_can_attach()
2234 struct cgroup_subsys_state *css; in cpuset_cancel_attach() local
2236 cgroup_taskset_first(tset, &css); in cpuset_cancel_attach()
2239 css_cs(css)->attach_in_progress--; in cpuset_cancel_attach()
2256 struct cgroup_subsys_state *css; in cpuset_attach() local
2260 cgroup_taskset_first(tset, &css); in cpuset_attach()
2261 cs = css_cs(css); in cpuset_attach()
2267 cgroup_taskset_for_each(task, css, tset) { in cpuset_attach()
2287 cgroup_taskset_for_each_leader(leader, css, tset) { in cpuset_attach()
2339 static int cpuset_write_u64(struct cgroup_subsys_state *css, struct cftype *cft, in cpuset_write_u64() argument
2342 struct cpuset *cs = css_cs(css); in cpuset_write_u64()
2388 static int cpuset_write_s64(struct cgroup_subsys_state *css, struct cftype *cft, in cpuset_write_s64() argument
2391 struct cpuset *cs = css_cs(css); in cpuset_write_s64()
2445 css_get(&cs->css); in cpuset_write_resmask()
2477 css_put(&cs->css); in cpuset_write_resmask()
2522 static u64 cpuset_read_u64(struct cgroup_subsys_state *css, struct cftype *cft) in cpuset_read_u64() argument
2524 struct cpuset *cs = css_cs(css); in cpuset_read_u64()
2553 static s64 cpuset_read_s64(struct cgroup_subsys_state *css, struct cftype *cft) in cpuset_read_s64() argument
2555 struct cpuset *cs = css_cs(css); in cpuset_read_s64()
2605 css_get(&cs->css); in sched_partition_write()
2615 css_put(&cs->css); in sched_partition_write()
2791 return &top_cpuset.css; in cpuset_css_alloc()
2812 return &cs->css; in cpuset_css_alloc()
2815 static int cpuset_css_online(struct cgroup_subsys_state *css) in cpuset_css_online() argument
2817 struct cpuset *cs = css_cs(css); in cpuset_css_online()
2845 if (!test_bit(CGRP_CPUSET_CLONE_CHILDREN, &css->cgroup->flags)) in cpuset_css_online()
2893 static void cpuset_css_offline(struct cgroup_subsys_state *css) in cpuset_css_offline() argument
2895 struct cpuset *cs = css_cs(css); in cpuset_css_offline()
2921 static void cpuset_css_free(struct cgroup_subsys_state *css) in cpuset_css_free() argument
2923 struct cpuset *cs = css_cs(css); in cpuset_css_free()
3025 if (cgroup_transfer_tasks(parent->css.cgroup, cs->css.cgroup)) { in remove_tasks_in_empty_cpuset()
3027 pr_cont_cgroup_name(cs->css.cgroup); in remove_tasks_in_empty_cpuset()
3302 if (cs == &top_cpuset || !css_tryget_online(&cs->css)) in cpuset_hotplug_workfn()
3309 css_put(&cs->css); in cpuset_hotplug_workfn()
3651 cgrp = task_cs(current)->css.cgroup; in cpuset_print_current_mems_allowed()
3707 struct cgroup_subsys_state *css; in proc_cpuset_show() local
3715 css = task_get_css(tsk, cpuset_cgrp_id); in proc_cpuset_show()
3716 retval = cgroup_path_ns(css->cgroup, buf, PATH_MAX, in proc_cpuset_show()
3718 css_put(css); in proc_cpuset_show()