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/ufs_fs.h>
26 #include <linux/major.h>
27
28 extern void device_setup(void);
29 extern void binfmt_setup(void);
30
31
32 asmlinkage int sys_setup(void)
33 {
34 static int callable = 1;
35
36 if (!callable)
37 return -1;
38 callable = 0;
39
40 device_setup();
41
42 binfmt_setup();
43
44 #ifdef CONFIG_EXT_FS
45 init_ext_fs();
46 #endif
47
48 #ifdef CONFIG_EXT2_FS
49 init_ext2_fs();
50 #endif
51
52 #ifdef CONFIG_XIA_FS
53 init_xiafs_fs();
54 #endif
55
56 #ifdef CONFIG_MINIX_FS
57 init_minix_fs();
58 #endif
59
60 #ifdef CONFIG_UMSDOS_FS
61 init_umsdos_fs();
62 #endif
63
64 #ifdef CONFIG_FAT_FS
65 init_fat_fs();
66 #endif
67
68 #ifdef CONFIG_MSDOS_FS
69 init_msdos_fs();
70 #endif
71
72 #ifdef CONFIG_VFAT_FS
73 init_vfat_fs();
74 #endif
75
76 #ifdef CONFIG_PROC_FS
77 init_proc_fs();
78 #endif
79
80 #ifdef CONFIG_NFS_FS
81 init_nfs_fs();
82 #endif
83
84 #ifdef CONFIG_SMB_FS
85 init_smb_fs();
86 #endif
87
88 #ifdef CONFIG_NCP_FS
89 init_ncp_fs();
90 #endif
91
92 #ifdef CONFIG_ISO9660_FS
93 init_iso9660_fs();
94 #endif
95
96 #ifdef CONFIG_SYSV_FS
97 init_sysv_fs();
98 #endif
99
100 #ifdef CONFIG_HPFS_FS
101 init_hpfs_fs();
102 #endif
103
104 #ifdef CONFIG_UFS_FS
105 init_ufs_fs();
106 #endif
107
108 mount_root();
109 return 0;
110 }