• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/kernel/

Lines Matching refs:cgroup

61 #include <linux/cgroup.h>
78 /* Forward declare cgroup structures */
112 /* Retrieve the cpuset for a cgroup */
113 static inline struct cpuset *cgroup_cs(struct cgroup *cont)
213 * guidelines for accessing subsystem state in kernel/cgroup.c
232 * silently switch it to mount "cgroup" instead
238 struct file_system_type *cgroup_fs = get_fs_type("cgroup");
395 struct cgroup *cont;
399 list_for_each_entry(cont, &cur->css.cgroup->children, sibling) {
418 list_for_each_entry(cont, &par->css.cgroup->children, sibling) {
431 if (cgroup_task_count(cur->css.cgroup)) {
467 struct cgroup *cont;
479 list_for_each_entry(cont, &cp->css.cgroup->children, sibling) {
581 struct cgroup *cont;
601 list_for_each_entry(cont, &cp->css.cgroup->children, sibling) {
794 * Called for each task in a cgroup by cgroup_scan_tasks().
808 * @scan: struct cgroup_scanner containing the cgroup of the task
810 * Called by cgroup_scan_tasks() for each task in a cgroup whose
813 * We don't need to re-check for the cgroup/cpuset membership, since we're
829 * The cgroup_scan_tasks() function will scan all the tasks in a cgroup,
839 scan.cg = cs->css.cgroup;
1062 scan.cg = cs->css.cgroup;
1185 * @scan: struct cgroup_scanner containing the cgroup of the task
1187 * Called by cgroup_scan_tasks() for each task in a cgroup.
1189 * We don't need to re-check for the cgroup/cpuset membership, since we're
1205 * The cgroup_scan_tasks() function will scan all the tasks in a cgroup,
1215 scan.cg = cs->css.cgroup;
1380 static int cpuset_can_attach(struct cgroup_subsys *ss, struct cgroup *cont,
1435 static void cpuset_attach(struct cgroup_subsys *ss, struct cgroup *cont,
1436 struct cgroup *oldcont, struct task_struct *tsk,
1499 static int cpuset_write_u64(struct cgroup *cgrp, struct cftype *cft, u64 val)
1544 static int cpuset_write_s64(struct cgroup *cgrp, struct cftype *cft, s64 val)
1568 static int cpuset_write_resmask(struct cgroup *cgrp, struct cftype *cft,
1641 static ssize_t cpuset_common_file_read(struct cgroup *cont,
1677 static u64 cpuset_read_u64(struct cgroup *cont, struct cftype *cft)
1708 static s64 cpuset_read_s64(struct cgroup *cont, struct cftype *cft)
1817 static int cpuset_populate(struct cgroup_subsys *ss, struct cgroup *cont)
1833 * 'cgroup' was just created automatically as a result of
1835 * be moved into 'cgroup'.
1837 * Currently we refuse to set up the cgroup - thereby
1845 * (and likewise for mems) to the new cgroup. Called with cgroup_mutex
1849 struct cgroup *cgroup)
1851 struct cgroup *parent, *child;
1854 parent = cgroup->parent;
1860 cs = cgroup_cs(cgroup);
1870 * ss: cpuset cgroup subsystem
1876 struct cgroup *cont)
1915 static void cpuset_destroy(struct cgroup_subsys *ss, struct cgroup *cont)
1975 * Called by cgroup_scan_tasks() for each task in a cgroup.
1981 struct cgroup *new_cgroup = scan->data;
1994 * The cgroup_scan_tasks() function will scan all the tasks in a cgroup,
2001 scan.cg = from->css.cgroup;
2002 scan.test_task = NULL; /* select all tasks in cgroup */
2005 scan.data = to->css.cgroup;
2027 * The cgroup's css_sets list is in use if there are tasks
2031 if (list_empty(&cs->css.cgroup->css_sets))
2066 struct cgroup *cont;
2077 list_for_each_entry(cont, &cp->css.cgroup->children, sibling) {
2533 dentry = task_cs(tsk)->css.cgroup->dentry;
2609 retval = cgroup_path(css->cgroup, buf, PAGE_SIZE);