Blame view
init/do_mounts.h
908 Bytes
b24413180 License cleanup: ... |
1 |
/* SPDX-License-Identifier: GPL-2.0 */ |
1da177e4c Linux-2.6.12-rc2 |
2 |
#include <linux/kernel.h> |
bff61975b md: move lots of ... |
3 |
#include <linux/blkdev.h> |
1da177e4c Linux-2.6.12-rc2 |
4 5 6 7 8 9 10 |
#include <linux/init.h> #include <linux/syscalls.h> #include <linux/unistd.h> #include <linux/slab.h> #include <linux/mount.h> #include <linux/major.h> #include <linux/root_dev.h> |
c60166f04 init: add an init... |
11 |
#include <linux/init_syscalls.h> |
1da177e4c Linux-2.6.12-rc2 |
12 |
|
1da177e4c Linux-2.6.12-rc2 |
13 14 15 |
void mount_block_root(char *name, int flags); void mount_root(void); extern int root_mountflags; |
1da177e4c Linux-2.6.12-rc2 |
16 |
|
09cbcec07 init: mark create... |
17 |
static inline __init int create_dev(char *name, dev_t dev) |
1da177e4c Linux-2.6.12-rc2 |
18 |
{ |
8fb9f73e5 init: add an init... |
19 |
init_unlink(name); |
5fee64fcd init: add an init... |
20 |
return init_mknod(name, S_IFBLK | 0600, new_encode_dev(dev)); |
1da177e4c Linux-2.6.12-rc2 |
21 |
} |
1da177e4c Linux-2.6.12-rc2 |
22 23 24 25 26 27 28 29 30 31 32 33 34 |
#ifdef CONFIG_BLK_DEV_RAM int __init rd_load_disk(int n); int __init rd_load_image(char *from); #else static inline int rd_load_disk(int n) { return 0; } static inline int rd_load_image(char *from) { return 0; } #endif #ifdef CONFIG_BLK_DEV_INITRD |
f057f3b22 init/do_mounts: i... |
35 |
bool __init initrd_load(void); |
1da177e4c Linux-2.6.12-rc2 |
36 37 |
#else |
f057f3b22 init/do_mounts: i... |
38 |
static inline bool initrd_load(void) { return false; } |
1da177e4c Linux-2.6.12-rc2 |
39 40 |
#endif |