diff options
author | Ben Blum <bblum@andrew.cmu.edu> | 2010-03-10 18:22:09 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-03-12 18:52:36 -0500 |
commit | e6a1105ba08b265023dd71a4174fb4a29ebc7083 (patch) | |
tree | c171a012df4364b0feac5d6f1bf8c354164ab0f9 /Documentation | |
parent | aae8aab40367036931608fdaf9e2dc568b516f19 (diff) |
cgroups: subsystem module loading interface
Add interface between cgroups subsystem management and module loading
This patch implements rudimentary module-loading support for cgroups -
namely, a cgroup_load_subsys (similar to cgroup_init_subsys) for use as a
module initcall, and a struct module pointer in struct cgroup_subsys.
Several functions that might be wanted by modules have had EXPORT_SYMBOL
added to them, but it's unclear exactly which functions want it and which
won't.
Signed-off-by: Ben Blum <bblum@andrew.cmu.edu>
Acked-by: Li Zefan <lizf@cn.fujitsu.com>
Cc: Paul Menage <menage@google.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Lai Jiangshan <laijs@cn.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/cgroups/cgroups.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/cgroups/cgroups.txt b/Documentation/cgroups/cgroups.txt index d45082653e3d..ae8a037a761e 100644 --- a/Documentation/cgroups/cgroups.txt +++ b/Documentation/cgroups/cgroups.txt | |||
@@ -488,6 +488,10 @@ Each subsystem should: | |||
488 | - add an entry in linux/cgroup_subsys.h | 488 | - add an entry in linux/cgroup_subsys.h |
489 | - define a cgroup_subsys object called <name>_subsys | 489 | - define a cgroup_subsys object called <name>_subsys |
490 | 490 | ||
491 | If a subsystem can be compiled as a module, it should also have in its | ||
492 | module initcall a call to cgroup_load_subsys(&its_subsys_struct). It | ||
493 | should also set its_subsys.module = THIS_MODULE in its .c file. | ||
494 | |||
491 | Each subsystem may export the following methods. The only mandatory | 495 | Each subsystem may export the following methods. The only mandatory |
492 | methods are create/destroy. Any others that are null are presumed to | 496 | methods are create/destroy. Any others that are null are presumed to |
493 | be successful no-ops. | 497 | be successful no-ops. |