aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/cgroups
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/cgroups')
-rw-r--r--Documentation/cgroups/cgroups.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/Documentation/cgroups/cgroups.txt b/Documentation/cgroups/cgroups.txt
index 93feb8444489..cdc46a501b85 100644
--- a/Documentation/cgroups/cgroups.txt
+++ b/Documentation/cgroups/cgroups.txt
@@ -476,11 +476,13 @@ cgroup->parent is still valid. (Note - can also be called for a
476newly-created cgroup if an error occurs after this subsystem's 476newly-created cgroup if an error occurs after this subsystem's
477create() method has been called for the new cgroup). 477create() method has been called for the new cgroup).
478 478
479void pre_destroy(struct cgroup_subsys *ss, struct cgroup *cgrp); 479int pre_destroy(struct cgroup_subsys *ss, struct cgroup *cgrp);
480 480
481Called before checking the reference count on each subsystem. This may 481Called before checking the reference count on each subsystem. This may
482be useful for subsystems which have some extra references even if 482be useful for subsystems which have some extra references even if
483there are not tasks in the cgroup. 483there are not tasks in the cgroup. If pre_destroy() returns error code,
484rmdir() will fail with it. From this behavior, pre_destroy() can be
485called multiple times against a cgroup.
484 486
485int can_attach(struct cgroup_subsys *ss, struct cgroup *cgrp, 487int can_attach(struct cgroup_subsys *ss, struct cgroup *cgrp,
486 struct task_struct *task) 488 struct task_struct *task)