diff options
Diffstat (limited to 'Documentation/cgroups/cgroups.txt')
-rw-r--r-- | Documentation/cgroups/cgroups.txt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Documentation/cgroups/cgroups.txt b/Documentation/cgroups/cgroups.txt index 821de56d1580..10c949b293e4 100644 --- a/Documentation/cgroups/cgroups.txt +++ b/Documentation/cgroups/cgroups.txt | |||
@@ -599,6 +599,20 @@ fork. If this method returns 0 (success) then this should remain valid | |||
599 | while the caller holds cgroup_mutex and it is ensured that either | 599 | while the caller holds cgroup_mutex and it is ensured that either |
600 | attach() or cancel_attach() will be called in future. | 600 | attach() or cancel_attach() will be called in future. |
601 | 601 | ||
602 | void css_reset(struct cgroup_subsys_state *css) | ||
603 | (cgroup_mutex held by caller) | ||
604 | |||
605 | An optional operation which should restore @css's configuration to the | ||
606 | initial state. This is currently only used on the unified hierarchy | ||
607 | when a subsystem is disabled on a cgroup through | ||
608 | "cgroup.subtree_control" but should remain enabled because other | ||
609 | subsystems depend on it. cgroup core makes such a css invisible by | ||
610 | removing the associated interface files and invokes this callback so | ||
611 | that the hidden subsystem can return to the initial neutral state. | ||
612 | This prevents unexpected resource control from a hidden css and | ||
613 | ensures that the configuration is in the initial state when it is made | ||
614 | visible again later. | ||
615 | |||
602 | void cancel_attach(struct cgroup *cgrp, struct cgroup_taskset *tset) | 616 | void cancel_attach(struct cgroup *cgrp, struct cgroup_taskset *tset) |
603 | (cgroup_mutex held by caller) | 617 | (cgroup_mutex held by caller) |
604 | 618 | ||