This source file includes following definitions.
- sys_setup
1
2
3
4
5
6
7
8
9 #include <linux/config.h>
10 #include <linux/fs.h>
11
12 #include <linux/minix_fs.h>
13 #include <linux/ext_fs.h>
14 #include <linux/ext2_fs.h>
15 #include <linux/xia_fs.h>
16 #include <linux/msdos_fs.h>
17 #include <linux/umsdos_fs.h>
18 #include <linux/proc_fs.h>
19 #include <linux/nfs_fs.h>
20 #include <linux/iso_fs.h>
21 #include <linux/sysv_fs.h>
22 #include <linux/hpfs_fs.h>
23 #include <linux/smb_fs.h>
24 #include <linux/ncp_fs.h>
25 #include <linux/major.h>
26
27 extern void device_setup(void);
28 extern void binfmt_setup(void);
29
30
31 asmlinkage int sys_setup(void)
32 {
33 static int callable = 1;
34
35 if (!callable)
36 return -1;
37 callable = 0;
38
39 device_setup();
40
41 binfmt_setup();
42
43 #ifdef CONFIG_EXT_FS
44 init_ext_fs();
45 #endif
46
47 #ifdef CONFIG_EXT2_FS
48 init_ext2_fs();
49 #endif
50
51 #ifdef CONFIG_XIA_FS
52 init_xiafs_fs();
53 #endif
54
55 #ifdef CONFIG_MINIX_FS
56 init_minix_fs();
57 #endif
58
59 #ifdef CONFIG_UMSDOS_FS
60 init_umsdos_fs();
61 #endif
62
63 #ifdef CONFIG_FAT_FS
64 init_fat_fs();
65 #endif
66
67 #ifdef CONFIG_MSDOS_FS
68 init_msdos_fs();
69 #endif
70
71 #ifdef CONFIG_VFAT_FS
72 init_vfat_fs();
73 #endif
74
75 #ifdef CONFIG_PROC_FS
76 init_proc_fs();
77 #endif
78
79 #ifdef CONFIG_NFS_FS
80 init_nfs_fs();
81 #endif
82
83 #ifdef CONFIG_SMB_FS
84 init_smb_fs();
85 #endif
86
87 #ifdef CONFIG_NCP_FS
88 init_ncp_fs();
89 #endif
90
91 #ifdef CONFIG_ISO9660_FS
92 init_iso9660_fs();
93 #endif
94
95 #ifdef CONFIG_SYSV_FS
96 init_sysv_fs();
97 #endif
98
99 #ifdef CONFIG_HPFS_FS
100 init_hpfs_fs();
101 #endif
102
103 mount_root();
104 return 0;
105 }