root/fs/filesystems.c

/* [previous][next][first][last][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. sys_setup

   1 /*
   2  *  linux/fs/filesystems.c
   3  *
   4  *  Copyright (C) 1991, 1992  Linus Torvalds
   5  *
   6  *  table of configured filesystems
   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/affs_fs.h>
  26 #include <linux/ufs_fs.h>
  27 #include <linux/major.h>
  28 
  29 extern void device_setup(void);
  30 extern void binfmt_setup(void);
  31 
  32 /* This may be used only once, enforced by 'static int callable' */
  33 asmlinkage int sys_setup(void)
     /* [previous][next][first][last][top][bottom][index][help] */
  34 {
  35         static int callable = 1;
  36 
  37         if (!callable)
  38                 return -1;
  39         callable = 0;
  40 
  41         device_setup();
  42 
  43         binfmt_setup();
  44 
  45 #ifdef CONFIG_EXT_FS
  46         init_ext_fs();
  47 #endif
  48 
  49 #ifdef CONFIG_EXT2_FS
  50         init_ext2_fs();
  51 #endif
  52 
  53 #ifdef CONFIG_XIA_FS
  54         init_xiafs_fs();
  55 #endif
  56 
  57 #ifdef CONFIG_MINIX_FS
  58         init_minix_fs();
  59 #endif
  60 
  61 #ifdef CONFIG_UMSDOS_FS
  62         init_umsdos_fs();
  63 #endif
  64 
  65 #ifdef CONFIG_FAT_FS
  66         init_fat_fs();
  67 #endif
  68 
  69 #ifdef CONFIG_MSDOS_FS
  70         init_msdos_fs();
  71 #endif
  72 
  73 #ifdef CONFIG_VFAT_FS
  74         init_vfat_fs();
  75 #endif
  76 
  77 #ifdef CONFIG_PROC_FS
  78         init_proc_fs();
  79 #endif
  80 
  81 #ifdef CONFIG_NFS_FS
  82         init_nfs_fs();
  83 #endif
  84 
  85 #ifdef CONFIG_SMB_FS
  86         init_smb_fs();
  87 #endif
  88 
  89 #ifdef CONFIG_NCP_FS
  90         init_ncp_fs();
  91 #endif
  92 
  93 #ifdef CONFIG_ISO9660_FS
  94         init_iso9660_fs();
  95 #endif
  96 
  97 #ifdef CONFIG_SYSV_FS
  98         init_sysv_fs();
  99 #endif
 100 
 101 #ifdef CONFIG_HPFS_FS
 102         init_hpfs_fs();
 103 #endif
 104 
 105 #ifdef CONFIG_AFFS_FS
 106         init_affs_fs();
 107 #endif
 108 
 109 #ifdef CONFIG_UFS_FS
 110         init_ufs_fs();
 111 #endif
 112 
 113         mount_root();
 114         return 0;
 115 }

/* [previous][next][first][last][top][bottom][index][help] */