28 #include <linux/module.h>
32 #include <linux/slab.h>
38 #define CONFIGFS_MAGIC 0x62656570
42 static int configfs_mnt_count = 0;
52 .ci_name = configfs_root_group.
cg_item.ci_namebuf,
58 return item == &configfs_root_group.
cg_item;
64 .s_element = &configfs_root_group.
cg_item,
77 sb->
s_op = &configfs_ops;
88 pr_debug(
"configfs: could not get root inode\n");
94 pr_debug(
"%s: could not get root dentry!\n",__func__);
98 configfs_root_group.
cg_item.ci_dentry = root;
106 int flags,
const char *dev_name,
void *data)
108 return mount_single(fs_type, flags, data, configfs_fill_super);
114 .mount = configfs_do_mount,
121 &configfs_mnt_count);
122 return err ? ERR_PTR(err) : configfs_mount->
mnt_root;
131 static struct kobject *config_kobj;
133 static int __init configfs_init(
void)
140 if (!configfs_dir_cachep)
163 configfs_dir_cachep =
NULL;
168 static void __exit configfs_exit(
void)
173 configfs_dir_cachep =
NULL;
180 MODULE_DESCRIPTION(
"Simple RAM filesystem for user driven kernel subsystem configuration.");