diff options
Diffstat (limited to 'Documentation/cgroups')
-rw-r--r-- | Documentation/cgroups/cgroups.txt | 6 |
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 | |||
476 | newly-created cgroup if an error occurs after this subsystem's | 476 | newly-created cgroup if an error occurs after this subsystem's |
477 | create() method has been called for the new cgroup). | 477 | create() method has been called for the new cgroup). |
478 | 478 | ||
479 | void pre_destroy(struct cgroup_subsys *ss, struct cgroup *cgrp); | 479 | int pre_destroy(struct cgroup_subsys *ss, struct cgroup *cgrp); |
480 | 480 | ||
481 | Called before checking the reference count on each subsystem. This may | 481 | Called before checking the reference count on each subsystem. This may |
482 | be useful for subsystems which have some extra references even if | 482 | be useful for subsystems which have some extra references even if |
483 | there are not tasks in the cgroup. | 483 | there are not tasks in the cgroup. If pre_destroy() returns error code, |
484 | rmdir() will fail with it. From this behavior, pre_destroy() can be | ||
485 | called multiple times against a cgroup. | ||
484 | 486 | ||
485 | int can_attach(struct cgroup_subsys *ss, struct cgroup *cgrp, | 487 | int can_attach(struct cgroup_subsys *ss, struct cgroup *cgrp, |
486 | struct task_struct *task) | 488 | struct task_struct *task) |