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, 5 insertions, 1 deletions
diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h
index 9a23bb098205..7d824b80b3d7 100644
--- a/include/linux/cgroup.h
+++ b/include/linux/cgroup.h
@@ -135,6 +135,10 @@ enum {
135 CGRP_RELEASABLE, 135 CGRP_RELEASABLE,
136 /* Control Group requires release notifications to userspace */ 136 /* Control Group requires release notifications to userspace */
137 CGRP_NOTIFY_ON_RELEASE, 137 CGRP_NOTIFY_ON_RELEASE,
138 /*
139 * A thread in rmdir() is wating for this cgroup.
140 */
141 CGRP_WAIT_ON_RMDIR,
138}; 142};
139 143
140struct cgroup { 144struct cgroup {
@@ -360,7 +364,7 @@ int cgroup_is_descendant(const struct cgroup *cgrp, struct task_struct *task);
360struct cgroup_subsys { 364struct cgroup_subsys {
361 struct cgroup_subsys_state *(*create)(struct cgroup_subsys *ss, 365 struct cgroup_subsys_state *(*create)(struct cgroup_subsys *ss,
362 struct cgroup *cgrp); 366 struct cgroup *cgrp);
363 void (*pre_destroy)(struct cgroup_subsys *ss, struct cgroup *cgrp); 367 int (*pre_destroy)(struct cgroup_subsys *ss, struct cgroup *cgrp);
364 void (*destroy)(struct cgroup_subsys *ss, struct cgroup *cgrp); 368 void (*destroy)(struct cgroup_subsys *ss, struct cgroup *cgrp);
365 int (*can_attach)(struct cgroup_subsys *ss, 369 int (*can_attach)(struct cgroup_subsys *ss,
366 struct cgroup *cgrp, struct task_struct *tsk); 370 struct cgroup *cgrp, struct task_struct *tsk);