diff options
author | Paul Menage <menage@google.com> | 2007-10-19 02:39:34 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-19 14:53:36 -0400 |
commit | 697f41610863c9264a7ae26dac9a387c9dda8c84 (patch) | |
tree | 9d4321f93abe36920a8e9d5239d120803f6cabbc /Documentation/cgroups.txt | |
parent | b4f48b6363c81ca743ef46943ef23fd72e60f679 (diff) |
Task Control Groups: add cgroup_clone() interface
Add support for cgroup_clone(), a way to create new cgroups intended to
be used for systems such as namespace unsharing. A new subsystem callback,
post_clone(), is added to allow subsystems to automatically configure cloned
cgroups.
Signed-off-by: Paul Menage <menage@google.com>
Cc: Serge E. Hallyn <serue@us.ibm.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Dave Hansen <haveblue@us.ibm.com>
Cc: Balbir Singh <balbir@in.ibm.com>
Cc: Paul Jackson <pj@sgi.com>
Cc: Kirill Korotaev <dev@openvz.org>
Cc: Herbert Poetzl <herbert@13thfloor.at>
Cc: Srivatsa Vaddagiri <vatsa@in.ibm.com>
Cc: Cedric Le Goater <clg@fr.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/cgroups.txt')
-rw-r--r-- | Documentation/cgroups.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Documentation/cgroups.txt b/Documentation/cgroups.txt index 4717887fd75d..553727cc9944 100644 --- a/Documentation/cgroups.txt +++ b/Documentation/cgroups.txt | |||
@@ -504,6 +504,13 @@ include/linux/cgroup.h for details). Note that although this | |||
504 | method can return an error code, the error code is currently not | 504 | method can return an error code, the error code is currently not |
505 | always handled well. | 505 | always handled well. |
506 | 506 | ||
507 | void post_clone(struct cgroup_subsys *ss, struct cgroup *cont) | ||
508 | |||
509 | Called at the end of cgroup_clone() to do any paramater | ||
510 | initialization which might be required before a task could attach. For | ||
511 | example in cpusets, no task may attach before 'cpus' and 'mems' are set | ||
512 | up. | ||
513 | |||
507 | void bind(struct cgroup_subsys *ss, struct cgroup *root) | 514 | void bind(struct cgroup_subsys *ss, struct cgroup *root) |
508 | LL=callback_mutex | 515 | LL=callback_mutex |
509 | 516 | ||