Home
last modified time | relevance | path

Searched refs:sysfs_root (Results 1 – 2 of 2) sorted by relevance

/fs/incfs/
Dmain.c23 static struct kobject *sysfs_root, *featurefs_root; variable
66 sysfs_root = kobject_create_and_add(INCFS_NAME, fs_kobj); in init_sysfs()
67 if (!sysfs_root) in init_sysfs()
71 sysfs_root); in init_sysfs()
77 kobject_put(sysfs_root); in init_sysfs()
78 sysfs_root = NULL; in init_sysfs()
91 if (sysfs_root) { in cleanup_sysfs()
92 kobject_put(sysfs_root); in cleanup_sysfs()
93 sysfs_root = NULL; in cleanup_sysfs()
/fs/sysfs/
Dmount.c23 static struct kernfs_root *sysfs_root; variable
70 kfc->root = sysfs_root; in sysfs_init_fs_context()
101 sysfs_root = kernfs_create_root(NULL, KERNFS_ROOT_EXTRA_OPEN_PERM_CHECK, in sysfs_init()
103 if (IS_ERR(sysfs_root)) in sysfs_init()
104 return PTR_ERR(sysfs_root); in sysfs_init()
106 sysfs_root_kn = sysfs_root->kn; in sysfs_init()
110 kernfs_destroy_root(sysfs_root); in sysfs_init()