• Home
  • Raw
  • Download

Lines Matching refs:css

117 	struct cgroup_subsys_state css;  member
244 static inline struct cpuset *css_cs(struct cgroup_subsys_state *css) in css_cs() argument
246 return css ? container_of(css, struct cpuset, css) : NULL; in css_cs()
257 return css_cs(cs->css.parent); in parent_cs()
289 return test_bit(CS_ONLINE, &cs->flags) && !css_is_dying(&cs->css); in is_cpuset_online()
376 css_for_each_child((pos_css), &(parent_cs)->css) \
391 css_for_each_descendant_pre((pos_css), &(root_cs)->css) \
496 struct cgroup_subsys_state *css; in partition_is_populated() local
499 if (cs->css.cgroup->nr_populated_csets) in partition_is_populated()
502 return cgroup_is_populated(cs->css.cgroup); in partition_is_populated()
505 cpuset_for_each_child(child, css, cs) { in partition_is_populated()
510 if (cgroup_is_populated(child->css.cgroup)) { in partition_is_populated()
722 struct cgroup_subsys_state *css; in validate_change_legacy() local
730 cpuset_for_each_child(c, css, cur) in validate_change_legacy()
767 struct cgroup_subsys_state *css; in validate_change() local
789 if ((cgroup_is_populated(cur->css.cgroup) || cur->attach_in_progress)) { in validate_change()
813 cpuset_for_each_child(c, css, par) { in validate_change()
1113 css_task_iter_start(&cs->css, 0, &it); in dl_update_tasks_root_domain()
1145 css_get(&cs->css); in dl_rebuild_rd_accounting()
1152 css_put(&cs->css); in dl_rebuild_rd_accounting()
1272 css_task_iter_start(&cs->css, 0, &it); in update_tasks_cpumask()
1679 if (!css_tryget_online(&cp->css)) in update_cpumasks_hier()
1754 css_put(&cp->css); in update_cpumasks_hier()
1790 if (!css_tryget_online(&sibling->css)) in update_sibling_cpumasks()
1796 css_put(&sibling->css); in update_sibling_cpumasks()
1858 struct cgroup_subsys_state *css; in update_cpumask() local
1870 cpuset_for_each_child(cp, css, parent) in update_cpumask()
2049 css_task_iter_start(&cs->css, 0, &it); in update_tasks_nodemask()
2116 if (!css_tryget_online(&cp->css)) in update_nodemasks_hier()
2130 css_put(&cp->css); in update_nodemasks_hier()
2243 css_task_iter_start(&cs->css, 0, &it); in update_tasks_flags()
2418 if (!list_empty(&cs->css.children)) in update_prstate()
2552 struct cgroup_subsys_state *css; in cpuset_can_attach() local
2558 cpuset_attach_old_cs = task_cs(cgroup_taskset_first(tset, &css)); in cpuset_can_attach()
2560 cs = css_cs(css); in cpuset_can_attach()
2569 cgroup_taskset_for_each(task, css, tset) { in cpuset_can_attach()
2615 struct cgroup_subsys_state *css; in cpuset_cancel_attach() local
2618 cgroup_taskset_first(tset, &css); in cpuset_cancel_attach()
2619 cs = css_cs(css); in cpuset_cancel_attach()
2666 struct cgroup_subsys_state *css; in cpuset_attach() local
2670 cgroup_taskset_first(tset, &css); in cpuset_attach()
2671 cs = css_cs(css); in cpuset_attach()
2678 cgroup_taskset_for_each(task, css, tset) in cpuset_attach()
2686 cgroup_taskset_for_each_leader(leader, css, tset) { in cpuset_attach()
2744 static int cpuset_write_u64(struct cgroup_subsys_state *css, struct cftype *cft, in cpuset_write_u64() argument
2747 struct cpuset *cs = css_cs(css); in cpuset_write_u64()
2793 static int cpuset_write_s64(struct cgroup_subsys_state *css, struct cftype *cft, in cpuset_write_s64() argument
2796 struct cpuset *cs = css_cs(css); in cpuset_write_s64()
2850 css_get(&cs->css); in cpuset_write_resmask()
2882 css_put(&cs->css); in cpuset_write_resmask()
2927 static u64 cpuset_read_u64(struct cgroup_subsys_state *css, struct cftype *cft) in cpuset_read_u64() argument
2929 struct cpuset *cs = css_cs(css); in cpuset_read_u64()
2958 static s64 cpuset_read_s64(struct cgroup_subsys_state *css, struct cftype *cft) in cpuset_read_s64() argument
2960 struct cpuset *cs = css_cs(css); in cpuset_read_s64()
3025 css_get(&cs->css); in sched_partition_write()
3035 css_put(&cs->css); in sched_partition_write()
3211 return &top_cpuset.css; in cpuset_css_alloc()
3232 return &cs->css; in cpuset_css_alloc()
3235 static int cpuset_css_online(struct cgroup_subsys_state *css) in cpuset_css_online() argument
3237 struct cpuset *cs = css_cs(css); in cpuset_css_online()
3273 if (!test_bit(CGRP_CPUSET_CLONE_CHILDREN, &css->cgroup->flags)) in cpuset_css_online()
3322 static void cpuset_css_offline(struct cgroup_subsys_state *css) in cpuset_css_offline() argument
3324 struct cpuset *cs = css_cs(css); in cpuset_css_offline()
3350 static void cpuset_css_free(struct cgroup_subsys_state *css) in cpuset_css_free() argument
3352 struct cpuset *cs = css_cs(css); in cpuset_css_free()
3540 if (cgroup_transfer_tasks(parent->css.cgroup, cs->css.cgroup)) { in remove_tasks_in_empty_cpuset()
3542 pr_cont_cgroup_name(cs->css.cgroup); in remove_tasks_in_empty_cpuset()
3831 if (cs == &top_cpuset || !css_tryget_online(&cs->css)) in cpuset_hotplug_workfn()
3838 css_put(&cs->css); in cpuset_hotplug_workfn()
4183 cgrp = task_cs(current)->css.cgroup; in cpuset_print_current_mems_allowed()
4239 struct cgroup_subsys_state *css; in proc_cpuset_show() local
4247 css = task_get_css(tsk, cpuset_cgrp_id); in proc_cpuset_show()
4248 retval = cgroup_path_ns(css->cgroup, buf, PATH_MAX, in proc_cpuset_show()
4250 css_put(css); in proc_cpuset_show()