aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/cgroup.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/cgroup.h')
-rw-r--r--include/linux/cgroup.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h
index 28319a9fe569..402ce477c47e 100644
--- a/include/linux/cgroup.h
+++ b/include/linux/cgroup.h
@@ -37,6 +37,7 @@ extern void cgroup_post_fork(struct task_struct *p);
37extern void cgroup_exit(struct task_struct *p, int run_callbacks); 37extern void cgroup_exit(struct task_struct *p, int run_callbacks);
38extern int cgroupstats_build(struct cgroupstats *stats, 38extern int cgroupstats_build(struct cgroupstats *stats,
39 struct dentry *dentry); 39 struct dentry *dentry);
40extern int cgroup_load_subsys(struct cgroup_subsys *ss);
40 41
41extern const struct file_operations proc_cgroup_operations; 42extern const struct file_operations proc_cgroup_operations;
42 43
@@ -486,6 +487,9 @@ struct cgroup_subsys {
486 /* used when use_id == true */ 487 /* used when use_id == true */
487 struct idr idr; 488 struct idr idr;
488 spinlock_t id_lock; 489 spinlock_t id_lock;
490
491 /* should be defined only by modular subsystems */
492 struct module *module;
489}; 493};
490 494
491#define SUBSYS(_x) extern struct cgroup_subsys _x ## _subsys; 495#define SUBSYS(_x) extern struct cgroup_subsys _x ## _subsys;