~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Linux Cross Reference
Linux/fs/filesystems.c

Version: ~ [ 2.4.0 ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  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/devfs_fs_kernel.h>
 13 #include <linux/nfs_fs.h>
 14 #include <linux/auto_fs.h>
 15 #include <linux/devpts_fs.h>
 16 #include <linux/major.h>
 17 #include <linux/smp.h>
 18 #include <linux/smp_lock.h>
 19 #include <linux/kmod.h>
 20 #include <linux/init.h>
 21 #include <linux/module.h>
 22 #include <linux/nfsd/interface.h>
 23 
 24 #ifdef CONFIG_DEVPTS_FS
 25 extern int init_devpts_fs(void);
 26 #endif
 27 
 28 void __init filesystem_setup(void)
 29 {
 30         init_devfs_fs();  /*  Header file may make this empty  */
 31 
 32 #ifdef CONFIG_NFS_FS
 33         init_nfs_fs();
 34 #endif
 35 
 36 #ifdef CONFIG_DEVPTS_FS
 37         init_devpts_fs();
 38 #endif
 39 }
 40 
 41 #if defined(CONFIG_NFSD_MODULE)
 42 struct nfsd_linkage *nfsd_linkage = NULL;
 43 
 44 long
 45 asmlinkage sys_nfsservctl(int cmd, void *argp, void *resp)
 46 {
 47         int ret = -ENOSYS;
 48         
 49         lock_kernel();
 50 
 51         if (nfsd_linkage ||
 52             (request_module ("nfsd") == 0 && nfsd_linkage))
 53                 ret = nfsd_linkage->do_nfsservctl(cmd, argp, resp);
 54 
 55         unlock_kernel();
 56         return ret;
 57 }
 58 EXPORT_SYMBOL(nfsd_linkage);
 59 
 60 #elif ! defined (CONFIG_NFSD)
 61 asmlinkage int sys_nfsservctl(int cmd, void *argp, void *resp)
 62 {
 63         return -ENOSYS;
 64 }
 65 #endif /* CONFIG_NFSD */
 66 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.