This ensures that sysfs is initialized very early, before anything can
possibily registered with it.
It happens early enough that all filesystems can registered with sysfs
(besides sysfs itself), which is coming next.
extern struct vfsmount *do_kern_mount(const char *type, int flags, char *name, void *data);
extern int do_remount_sb(struct super_block *sb, int flags, void * data);
extern int __init init_rootfs(void);
+extern int __init sysfs_init(void);
static struct list_head *mount_hashtable;
static int hash_mask, hash_bits;
d++;
i--;
} while (i);
+ sysfs_init();
init_rootfs();
init_mount_tree();
}
.kill_sb = kill_litter_super,
};
-static int __init sysfs_init(void)
+int __init sysfs_init(void)
{
int err;
}
return err;
}
-
-core_initcall(sysfs_init);