X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=init%2Fdo_mounts.h;h=e0a7ac9649e1e4c10c080a7691744ce62e6bc497;hb=9464c7cf61b9433057924c36e6e02f303a00e768;hp=735705d137ff9beaf0f7866e7c804d7080183780;hpb=41689045f6a3cbe0550e1d34e9cc20d2e8c432ba;p=linux-2.6.git diff --git a/init/do_mounts.h b/init/do_mounts.h index 735705d13..e0a7ac964 100644 --- a/init/do_mounts.h +++ b/init/do_mounts.h @@ -1,4 +1,6 @@ +#include #include +#include #include #include #include @@ -13,12 +15,25 @@ void mount_root(void); extern int root_mountflags; extern char *root_device_name; -static inline int create_dev(char *name, dev_t dev) +#ifdef CONFIG_DEVFS_FS + +void mount_devfs(void); +void umount_devfs(char *path); +int create_dev(char *name, dev_t dev, char *devfs_name); + +#else + +static inline void mount_devfs(void) {} +static inline void umount_devfs(const char *path) {} + +static inline int create_dev(char *name, dev_t dev, char *devfs_name) { sys_unlink(name); return sys_mknod(name, S_IFBLK|0600, new_encode_dev(dev)); } +#endif + #if BITS_PER_LONG == 32 static inline u32 bstat(char *name) {