Lines Matching refs:cgroup
119 static inline struct cpuset *cgroup_cs(struct cgroup *cont) in cgroup_cs()
133 struct cgroup *to;
478 struct cgroup *cont; in validate_change()
482 list_for_each_entry(cont, &cur->css.cgroup->children, sibling) { in validate_change()
501 list_for_each_entry(cont, &par->css.cgroup->children, sibling) { in validate_change()
514 if (cgroup_task_count(cur->css.cgroup)) { in validate_change()
549 struct cgroup *cont; in update_domain_attr_tree()
561 list_for_each_entry(cont, &cp->css.cgroup->children, sibling) { in update_domain_attr_tree()
664 struct cgroup *cont; in generate_sched_domains()
684 list_for_each_entry(cont, &cp->css.cgroup->children, sibling) { in generate_sched_domains()
910 scan.cg = cs->css.cgroup; in update_tasks_cpumask()
1063 ntasks = cgroup_task_count(cs->css.cgroup); /* guess */ in update_tasks_nodemask()
1069 if (cgroup_task_count(cs->css.cgroup) <= ntasks) in update_tasks_nodemask()
1078 cgroup_iter_start(cs->css.cgroup, &it); in update_tasks_nodemask()
1079 while ((p = cgroup_iter_next(cs->css.cgroup, &it))) { in update_tasks_nodemask()
1092 cgroup_iter_end(cs->css.cgroup, &it); in update_tasks_nodemask()
1355 struct cgroup *cont, struct task_struct *tsk) in cpuset_can_attach()
1381 struct cgroup *cont, struct cgroup *oldcont, in cpuset_attach()
1429 static int cpuset_write_u64(struct cgroup *cgrp, struct cftype *cft, u64 val) in cpuset_write_u64()
1476 static int cpuset_write_s64(struct cgroup *cgrp, struct cftype *cft, s64 val) in cpuset_write_s64()
1500 static int cpuset_write_resmask(struct cgroup *cgrp, struct cftype *cft, in cpuset_write_resmask()
1565 static ssize_t cpuset_common_file_read(struct cgroup *cont, in cpuset_common_file_read()
1601 static u64 cpuset_read_u64(struct cgroup *cont, struct cftype *cft) in cpuset_read_u64()
1632 static s64 cpuset_read_s64(struct cgroup *cont, struct cftype *cft) in cpuset_read_s64()
1740 static int cpuset_populate(struct cgroup_subsys *ss, struct cgroup *cont) in cpuset_populate()
1772 struct cgroup *cgroup) in cpuset_post_clone() argument
1774 struct cgroup *parent, *child; in cpuset_post_clone()
1777 parent = cgroup->parent; in cpuset_post_clone()
1783 cs = cgroup_cs(cgroup); in cpuset_post_clone()
1799 struct cgroup *cont) in cpuset_create()
1842 static void cpuset_destroy(struct cgroup_subsys *ss, struct cgroup *cont) in cpuset_destroy()
1944 scan.scan.cg = from->css.cgroup; in move_member_tasks_to_cpuset()
1948 scan.to = to->css.cgroup; in move_member_tasks_to_cpuset()
1974 if (list_empty(&cs->css.cgroup->css_sets)) in remove_tasks_in_empty_cpuset()
2009 struct cgroup *cont; in scan_for_empty_cpusets()
2017 list_for_each_entry(cont, &cp->css.cgroup->children, sibling) { in scan_for_empty_cpusets()
2451 dentry = task_cs(tsk)->css.cgroup->dentry; in cpuset_print_task_mems_allowed()
2527 retval = cgroup_path(css->cgroup, buf, PAGE_SIZE); in proc_cpuset_show()