]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/configfs.h
cgroups: add cgroup support for enabling controllers at boot time
[linux-2.6-omap-h63xx.git] / include / linux / configfs.h
index 8227e730dac7097f73cbd8259d6588dc00439e2d..4b287ad9371abe101956dd2a05015ca7cda7459f 100644 (file)
@@ -37,6 +37,7 @@
 
 #ifdef __KERNEL__
 
+#include <linux/kernel.h>
 #include <linux/types.h>
 #include <linux/list.h>
 #include <linux/kref.h>
@@ -188,6 +189,11 @@ static inline struct configfs_subsystem *to_configfs_subsystem(struct config_gro
 int configfs_register_subsystem(struct configfs_subsystem *subsys);
 void configfs_unregister_subsystem(struct configfs_subsystem *subsys);
 
+/* These functions can sleep and can alloc with GFP_KERNEL */
+/* WARNING: These cannot be called underneath configfs callbacks!! */
+int configfs_depend_item(struct configfs_subsystem *subsys, struct config_item *target);
+void configfs_undepend_item(struct configfs_subsystem *subsys, struct config_item *target);
+
 #endif  /* __KERNEL__ */
 
 #endif /* _CONFIGFS_H_ */