The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/fs/filesystems.c

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /*
    2  *  linux/fs/filesystems.c
    3  *
    4  *  Copyright (C) 1991, 1992  Linus Torvalds
    5  *
    6  *  nfsservctl system-call when nfsd is not compiled in.
    7  */
    8 
    9 #include <linux/config.h>
   10 #include <linux/module.h>
   11 #include <linux/sched.h>
   12 #include <linux/smp_lock.h>
   13 #include <linux/kmod.h>
   14 #include <linux/nfsd/interface.h>
   15 
   16 #if ! defined(CONFIG_NFSD)
   17 struct nfsd_linkage *nfsd_linkage;
   18 
   19 long
   20 asmlinkage sys_nfsservctl(int cmd, void *argp, void *resp)
   21 {
   22         int ret = -ENOSYS;
   23         
   24 #if defined(CONFIG_MODULES)
   25         lock_kernel();
   26 
   27         if (nfsd_linkage ||
   28             (request_module ("nfsd") == 0 && nfsd_linkage)) {
   29                 __MOD_INC_USE_COUNT(nfsd_linkage->owner);
   30                 unlock_kernel();
   31                 ret = nfsd_linkage->do_nfsservctl(cmd, argp, resp);
   32                 __MOD_DEC_USE_COUNT(nfsd_linkage->owner);
   33         } else
   34                 unlock_kernel();
   35 #endif
   36         return ret;
   37 }
   38 EXPORT_SYMBOL(nfsd_linkage);
   39 
   40 #endif /* CONFIG_NFSD */

Cache object: 120c943c9621bf2b07b433243d0cb18b


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.