aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/cgroup.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/cgroup.h')
-rw-r--r--include/linux/cgroup.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h
index b7dd23040cd5..79faa6467f76 100644
--- a/include/linux/cgroup.h
+++ b/include/linux/cgroup.h
@@ -38,6 +38,8 @@
38 38
39/* walk only threadgroup leaders */ 39/* walk only threadgroup leaders */
40#define CSS_TASK_ITER_PROCS (1U << 0) 40#define CSS_TASK_ITER_PROCS (1U << 0)
41/* walk all threaded css_sets in the domain */
42#define CSS_TASK_ITER_THREADED (1U << 1)
41 43
42/* a css_task_iter should be treated as an opaque object */ 44/* a css_task_iter should be treated as an opaque object */
43struct css_task_iter { 45struct css_task_iter {
@@ -47,11 +49,15 @@ struct css_task_iter {
47 struct list_head *cset_pos; 49 struct list_head *cset_pos;
48 struct list_head *cset_head; 50 struct list_head *cset_head;
49 51
52 struct list_head *tcset_pos;
53 struct list_head *tcset_head;
54
50 struct list_head *task_pos; 55 struct list_head *task_pos;
51 struct list_head *tasks_head; 56 struct list_head *tasks_head;
52 struct list_head *mg_tasks_head; 57 struct list_head *mg_tasks_head;
53 58
54 struct css_set *cur_cset; 59 struct css_set *cur_cset;
60 struct css_set *cur_dcset;
55 struct task_struct *cur_task; 61 struct task_struct *cur_task;
56 struct list_head iters_node; /* css_set->task_iters */ 62 struct list_head iters_node; /* css_set->task_iters */
57}; 63};