From 697f41610863c9264a7ae26dac9a387c9dda8c84 Mon Sep 17 00:00:00 2001 From: Paul Menage Date: Thu, 18 Oct 2007 23:39:34 -0700 Subject: 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 Cc: Serge E. Hallyn Cc: "Eric W. Biederman" Cc: Dave Hansen Cc: Balbir Singh Cc: Paul Jackson Cc: Kirill Korotaev Cc: Herbert Poetzl Cc: Srivatsa Vaddagiri Cc: Cedric Le Goater Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Documentation/cgroups.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Documentation/cgroups.txt') diff --git a/Documentation/cgroups.txt b/Documentation/cgroups.txt index 4717887fd75..553727cc994 100644 --- a/Documentation/cgroups.txt +++ b/Documentation/cgroups.txt @@ -504,6 +504,13 @@ include/linux/cgroup.h for details). Note that although this method can return an error code, the error code is currently not always handled well. +void post_clone(struct cgroup_subsys *ss, struct cgroup *cont) + +Called at the end of cgroup_clone() to do any paramater +initialization which might be required before a task could attach. For +example in cpusets, no task may attach before 'cpus' and 'mems' are set +up. + void bind(struct cgroup_subsys *ss, struct cgroup *root) LL=callback_mutex -- cgit v1.2.3