Source
10
10
#include <linux/root_dev.h>
11
11
12
12
void change_floppy(char *fmt, ...);
13
13
void mount_block_root(char *name, int flags);
14
14
void mount_root(void);
15
15
extern int root_mountflags;
16
16
17
17
static inline int create_dev(char *name, dev_t dev)
18
18
{
19
19
ksys_unlink(name);
20
-
return sys_mknod(name, S_IFBLK|0600, new_encode_dev(dev));
20
+
return ksys_mknod(name, S_IFBLK|0600, new_encode_dev(dev));
21
21
}
22
22
23
23
static inline u32 bstat(char *name)
24
24
{
25
25
struct kstat stat;
26
26
if (vfs_stat(name, &stat) != 0)
27
27
return 0;
28
28
if (!S_ISBLK(stat.mode))
29
29
return 0;
30
30
return stat.rdev;