Home | History | Annotate | Line # | Download | only in nfs
nfs_var.h revision 1.53.6.2
      1  1.53.6.2      yamt /*	$NetBSD: nfs_var.h,v 1.53.6.2 2005/11/18 08:44:54 yamt Exp $	*/
      2       1.1  christos 
      3      1.15  christos /*-
      4      1.15  christos  * Copyright (c) 1996 The NetBSD Foundation, Inc.
      5      1.15  christos  * All rights reserved.
      6      1.15  christos  *
      7      1.15  christos  * This code is derived from software contributed to The NetBSD Foundation
      8      1.15  christos  * by Christos Zoulas.
      9       1.1  christos  *
     10       1.1  christos  * Redistribution and use in source and binary forms, with or without
     11       1.1  christos  * modification, are permitted provided that the following conditions
     12       1.1  christos  * are met:
     13       1.1  christos  * 1. Redistributions of source code must retain the above copyright
     14       1.1  christos  *    notice, this list of conditions and the following disclaimer.
     15       1.1  christos  * 2. Redistributions in binary form must reproduce the above copyright
     16       1.1  christos  *    notice, this list of conditions and the following disclaimer in the
     17       1.1  christos  *    documentation and/or other materials provided with the distribution.
     18       1.1  christos  * 3. All advertising materials mentioning features or use of this software
     19       1.1  christos  *    must display the following acknowledgement:
     20      1.15  christos  *        This product includes software developed by the NetBSD
     21      1.15  christos  *        Foundation, Inc. and its contributors.
     22      1.15  christos  * 4. Neither the name of The NetBSD Foundation nor the names of its
     23      1.15  christos  *    contributors may be used to endorse or promote products derived
     24      1.15  christos  *    from this software without specific prior written permission.
     25       1.1  christos  *
     26      1.15  christos  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
     27      1.15  christos  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
     28      1.15  christos  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
     29      1.15  christos  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
     30      1.15  christos  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
     31      1.15  christos  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
     32      1.15  christos  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
     33      1.15  christos  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
     34      1.15  christos  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
     35      1.15  christos  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
     36      1.15  christos  * POSSIBILITY OF SUCH DAMAGE.
     37       1.1  christos  */
     38       1.1  christos 
     39       1.3      fvdl /*
     40       1.3      fvdl  * XXX needs <nfs/rpcv2.h> and <nfs/nfs.h> because of typedefs
     41       1.3      fvdl  */
     42      1.27   thorpej 
     43      1.28  christos #ifdef _KERNEL
     44      1.27   thorpej #include <sys/mallocvar.h>
     45      1.37      yamt #include <sys/pool.h>
     46      1.27   thorpej 
     47      1.27   thorpej MALLOC_DECLARE(M_NFSREQ);
     48      1.27   thorpej MALLOC_DECLARE(M_NFSMNT);
     49      1.27   thorpej MALLOC_DECLARE(M_NFSUID);
     50      1.27   thorpej MALLOC_DECLARE(M_NFSD);
     51      1.27   thorpej MALLOC_DECLARE(M_NFSDIROFF);
     52      1.27   thorpej MALLOC_DECLARE(M_NFSBIGFH);
     53      1.27   thorpej MALLOC_DECLARE(M_NQLEASE);
     54      1.37      yamt extern struct pool nfs_srvdesc_pool;
     55       1.3      fvdl 
     56       1.1  christos struct vnode;
     57       1.1  christos struct uio;
     58       1.1  christos struct ucred;
     59       1.1  christos struct proc;
     60       1.1  christos struct buf;
     61       1.1  christos struct nfs_diskless;
     62       1.1  christos struct sockaddr_in;
     63       1.1  christos struct nfs_dlmount;
     64       1.1  christos struct vnode;
     65       1.1  christos struct nfsd;
     66       1.1  christos struct mbuf;
     67       1.1  christos struct file;
     68       1.1  christos struct nqlease;
     69       1.1  christos struct nqhost;
     70       1.1  christos struct nfssvc_sock;
     71       1.1  christos struct nfsmount;
     72       1.1  christos struct socket;
     73       1.1  christos struct nfsreq;
     74       1.1  christos struct vattr;
     75       1.1  christos struct nameidata;
     76       1.1  christos struct nfsnode;
     77       1.1  christos struct sillyrename;
     78       1.1  christos struct componentname;
     79       1.2  christos struct nfsd_srvargs;
     80       1.3      fvdl struct nfsrv_descript;
     81       1.3      fvdl struct nfs_fattr;
     82      1.10      fvdl struct nfsdircache;
     83      1.13       mrg union nethostaddr;
     84  1.53.6.1      yamt struct uvm_ractx;
     85       1.1  christos 
     86       1.1  christos /* nfs_bio.c */
     87  1.53.6.2      yamt int nfs_bioread __P((struct vnode *, struct uio *, int, struct ucred *, int));
     88      1.41      fvdl struct buf *nfs_getcacheblk __P((struct vnode *, daddr_t, int, struct proc *));
     89      1.41      fvdl int nfs_vinvalbuf __P((struct vnode *, int, struct ucred *, struct proc *,
     90       1.1  christos 		       int));
     91      1.47      yamt int nfs_flushstalebuf __P((struct vnode *, struct ucred *, struct proc *, int));
     92      1.47      yamt #define	NFS_FLUSHSTALEBUF_MYWRITE	1	/* assume writes are ours */
     93      1.19       chs int nfs_asyncio __P((struct buf *));
     94      1.51  christos int nfs_doio __P((struct buf *));
     95       1.1  christos 
     96       1.1  christos /* nfs_boot.c */
     97       1.9       gwr /* see nfsdiskless.h */
     98      1.25  jdolecek 
     99      1.25  jdolecek /* nfs_kq.c */
    100      1.25  jdolecek void nfs_kqinit __P((void));
    101       1.1  christos 
    102       1.1  christos /* nfs_node.c */
    103       1.1  christos void nfs_nhinit __P((void));
    104      1.20       chs void nfs_nhreinit __P((void));
    105      1.16  jdolecek void nfs_nhdone __P((void));
    106      1.43      yamt int nfs_nget1 __P((struct mount *, nfsfh_t *, int, struct nfsnode **, int));
    107      1.43      yamt #define	nfs_nget(mp, fhp, fhsize, npp) \
    108      1.43      yamt 	nfs_nget1((mp), (fhp), (fhsize), (npp), 0)
    109       1.1  christos 
    110       1.1  christos /* nfs_vnops.c */
    111      1.41      fvdl int nfs_null __P((struct vnode *, struct ucred *, struct proc *));
    112       1.3      fvdl int nfs_setattrrpc __P((struct vnode *, struct vattr *, struct ucred *,
    113      1.41      fvdl 			struct proc *));
    114       1.1  christos int nfs_readlinkrpc __P((struct vnode *, struct uio *, struct ucred *));
    115      1.19       chs int nfs_readrpc __P((struct vnode *, struct uio *));
    116      1.34      yamt int nfs_writerpc __P((struct vnode *, struct uio *, int *, boolean_t,
    117      1.34      yamt 			boolean_t *));
    118       1.3      fvdl int nfs_mknodrpc __P((struct vnode *, struct vnode **, struct componentname *,
    119       1.3      fvdl 		      struct vattr *));
    120       1.1  christos int nfs_removeit __P((struct sillyrename *));
    121       1.5       cgd int nfs_removerpc __P((struct vnode *, const char *, int, struct ucred *,
    122      1.41      fvdl 		       struct proc *));
    123       1.1  christos int nfs_renameit __P((struct vnode *, struct componentname *,
    124       1.1  christos 		      struct sillyrename *));
    125       1.5       cgd int nfs_renamerpc __P((struct vnode *, const char *, int, struct vnode *,
    126      1.41      fvdl 		       const char *, int, struct ucred *, struct proc *));
    127       1.1  christos int nfs_readdirrpc __P((struct vnode *, struct uio *, struct ucred *));
    128       1.3      fvdl int nfs_readdirplusrpc __P((struct vnode *, struct uio *, struct ucred *));
    129       1.1  christos int nfs_sillyrename __P((struct vnode *, struct vnode *,
    130       1.1  christos 			 struct componentname *));
    131       1.5       cgd int nfs_lookitup __P((struct vnode *, const char *, int, struct ucred *,
    132      1.41      fvdl 		      struct proc *, struct nfsnode **));
    133      1.41      fvdl int nfs_commit __P((struct vnode *, off_t, uint32_t, struct proc *));
    134      1.41      fvdl int nfs_flush __P((struct vnode *, struct ucred *, int, struct proc *, int));
    135       1.1  christos 
    136       1.1  christos /* nfs_nqlease.c */
    137       1.3      fvdl void nqnfs_lease_updatetime __P((int));
    138       1.3      fvdl void nqnfs_clientlease __P((struct nfsmount *, struct nfsnode *, int, int,
    139       1.3      fvdl 			    time_t, u_quad_t));
    140       1.3      fvdl void nqsrv_locklease __P((struct nqlease *));
    141       1.3      fvdl void nqsrv_unlocklease __P((struct nqlease *));
    142       1.3      fvdl int nqsrv_getlease __P((struct vnode *, u_int32_t *, int, struct nfssvc_sock *,
    143      1.41      fvdl 			struct proc *, struct mbuf *, int *, u_quad_t *,
    144       1.3      fvdl 			struct ucred *));
    145       1.1  christos void nqsrv_addhost __P((struct nqhost *, struct nfssvc_sock *, struct mbuf *));
    146       1.3      fvdl void nqsrv_instimeq __P((struct nqlease *, u_int32_t));
    147       1.1  christos int nqsrv_cmpnam __P((struct nfssvc_sock *, struct mbuf *, struct nqhost *));
    148       1.1  christos void nqsrv_send_eviction __P((struct vnode *, struct nqlease *,
    149       1.1  christos 			      struct nfssvc_sock *, struct mbuf *,
    150      1.45  jonathan 			      struct ucred *, struct proc *));
    151       1.1  christos void nqsrv_waitfor_expiry __P((struct nqlease *));
    152       1.1  christos void nqnfs_serverd __P((void));
    153       1.3      fvdl int nqnfsrv_getlease __P((struct nfsrv_descript *, struct nfssvc_sock *,
    154      1.41      fvdl 			  struct proc *, struct mbuf **));
    155       1.3      fvdl int nqnfsrv_vacated __P((struct nfsrv_descript *, struct nfssvc_sock *,
    156      1.41      fvdl 			 struct proc *, struct mbuf **));
    157      1.41      fvdl int nqnfs_getlease __P((struct vnode *, int, struct ucred *, struct proc *));
    158      1.45  jonathan int nqnfs_vacated __P((struct vnode *, struct ucred *, struct proc *));
    159       1.1  christos int nqnfs_callback __P((struct nfsmount *, struct mbuf *, struct mbuf *,
    160      1.41      fvdl 			caddr_t));
    161       1.1  christos 
    162       1.1  christos /* nfs_serv.c */
    163       1.3      fvdl int nfsrv3_access __P((struct nfsrv_descript *, struct nfssvc_sock *,
    164      1.41      fvdl 		       struct proc *, struct mbuf **));
    165       1.3      fvdl int nfsrv_getattr __P((struct nfsrv_descript *, struct nfssvc_sock *,
    166      1.41      fvdl 		       struct proc *, struct mbuf **));
    167       1.3      fvdl int nfsrv_setattr __P((struct nfsrv_descript *, struct nfssvc_sock *,
    168      1.41      fvdl 		       struct proc *, struct mbuf **));
    169       1.3      fvdl int nfsrv_lookup __P((struct nfsrv_descript *, struct nfssvc_sock *,
    170      1.41      fvdl 		      struct proc *, struct mbuf **));
    171       1.3      fvdl int nfsrv_readlink __P((struct nfsrv_descript *, struct nfssvc_sock *,
    172      1.41      fvdl 			struct proc *, struct mbuf **));
    173       1.3      fvdl int nfsrv_read __P((struct nfsrv_descript *, struct nfssvc_sock *,
    174      1.41      fvdl 		    struct proc *, struct mbuf **));
    175       1.3      fvdl int nfsrv_write __P((struct nfsrv_descript *, struct nfssvc_sock *,
    176      1.41      fvdl 		     struct proc *, struct mbuf **));
    177       1.3      fvdl int nfsrv_writegather __P((struct nfsrv_descript **, struct nfssvc_sock *,
    178      1.41      fvdl 			   struct proc *, struct mbuf **));
    179       1.3      fvdl void nfsrvw_coalesce __P((struct nfsrv_descript *, struct nfsrv_descript *));
    180       1.3      fvdl int nfsrv_create __P((struct nfsrv_descript *, struct nfssvc_sock *,
    181      1.41      fvdl 		      struct proc *, struct mbuf **));
    182       1.3      fvdl int nfsrv_mknod __P((struct nfsrv_descript *, struct nfssvc_sock *,
    183      1.41      fvdl 		     struct proc *, struct mbuf **));
    184       1.3      fvdl int nfsrv_remove __P((struct nfsrv_descript *, struct nfssvc_sock *,
    185      1.41      fvdl 		      struct proc *, struct mbuf **));
    186       1.3      fvdl int nfsrv_rename __P((struct nfsrv_descript *, struct nfssvc_sock *,
    187      1.41      fvdl 		      struct proc *, struct mbuf **));
    188       1.3      fvdl int nfsrv_link __P((struct nfsrv_descript *, struct nfssvc_sock *,
    189      1.41      fvdl 		    struct proc *, struct mbuf **));
    190       1.3      fvdl int nfsrv_symlink __P((struct nfsrv_descript *, struct nfssvc_sock *,
    191      1.41      fvdl 		       struct proc *, struct mbuf **));
    192       1.3      fvdl int nfsrv_mkdir __P((struct nfsrv_descript *, struct nfssvc_sock *,
    193      1.41      fvdl 		     struct proc *, struct mbuf **));
    194       1.3      fvdl int nfsrv_rmdir __P((struct nfsrv_descript *, struct nfssvc_sock *,
    195      1.41      fvdl 		     struct proc *, struct mbuf **));
    196       1.3      fvdl int nfsrv_readdir __P((struct nfsrv_descript *, struct nfssvc_sock *,
    197      1.41      fvdl 		       struct proc *, struct mbuf **));
    198       1.3      fvdl int nfsrv_readdirplus __P((struct nfsrv_descript *, struct nfssvc_sock *,
    199      1.41      fvdl 			   struct proc *, struct mbuf **));
    200       1.3      fvdl int nfsrv_commit __P((struct nfsrv_descript *, struct nfssvc_sock *,
    201      1.41      fvdl 		      struct proc *, struct mbuf **));
    202       1.3      fvdl int nfsrv_statfs __P((struct nfsrv_descript *, struct nfssvc_sock *,
    203      1.41      fvdl 		      struct proc *, struct mbuf **));
    204       1.3      fvdl int nfsrv_fsinfo __P((struct nfsrv_descript *, struct nfssvc_sock *,
    205      1.41      fvdl 		      struct proc *, struct mbuf **));
    206       1.3      fvdl int nfsrv_pathconf __P((struct nfsrv_descript *, struct nfssvc_sock *,
    207      1.41      fvdl 		        struct proc *, struct mbuf **));
    208       1.3      fvdl int nfsrv_null __P((struct nfsrv_descript *, struct nfssvc_sock *,
    209      1.41      fvdl 		    struct proc *, struct mbuf **));
    210       1.3      fvdl int nfsrv_noop __P((struct nfsrv_descript *, struct nfssvc_sock *,
    211      1.41      fvdl 		    struct proc *, struct mbuf **));
    212      1.41      fvdl int nfsrv_access __P((struct vnode *, int, struct ucred *, int, struct proc *,
    213       1.6      fvdl 		      int));
    214       1.1  christos 
    215       1.1  christos /* nfs_socket.c */
    216      1.45  jonathan int nfs_connect __P((struct nfsmount *, struct nfsreq *, struct proc *));
    217      1.45  jonathan int nfs_reconnect __P((struct nfsreq *, struct proc *));
    218       1.1  christos void nfs_disconnect __P((struct nfsmount *));
    219      1.12      fvdl void nfs_safedisconnect __P((struct nfsmount *));
    220       1.1  christos int nfs_send __P((struct socket *, struct mbuf *, struct mbuf *,
    221      1.45  jonathan 		  struct nfsreq *, struct proc *));
    222      1.45  jonathan int nfs_receive __P((struct nfsreq *, struct mbuf **, struct mbuf **,
    223      1.45  jonathan 		     struct proc *));
    224      1.45  jonathan int nfs_reply __P((struct nfsreq *, struct proc *));
    225      1.41      fvdl int nfs_request __P((struct nfsnode *, struct mbuf *, int, struct proc *,
    226       1.1  christos 		     struct ucred *, struct mbuf **, struct mbuf **,
    227      1.44      yamt 		     caddr_t *, int *));
    228       1.3      fvdl int nfs_rephead __P((int, struct nfsrv_descript *, struct nfssvc_sock *,
    229       1.3      fvdl 		     int, int, u_quad_t *, struct mbuf **, struct mbuf **,			     caddr_t *));
    230       1.1  christos void nfs_timer __P((void *));
    231      1.41      fvdl int nfs_sigintr __P((struct nfsmount *, struct nfsreq *, struct proc *));
    232       1.1  christos int nfs_sndlock __P((int *, struct nfsreq *));
    233      1.41      fvdl void nfs_exit __P((struct proc *, void *));
    234       1.1  christos void nfs_sndunlock __P((int *));
    235       1.1  christos int nfs_rcvlock __P((struct nfsreq *));
    236      1.35      yamt void nfs_rcvunlock __P((struct nfsmount *));
    237       1.3      fvdl int nfs_getreq __P((struct nfsrv_descript *, struct nfsd *, int));
    238      1.50  christos int nfs_msg __P((struct proc *, const char *, const char *));
    239       1.1  christos void nfsrv_rcv __P((struct socket *, caddr_t, int));
    240       1.1  christos int nfsrv_getstream __P((struct nfssvc_sock *, int));
    241       1.3      fvdl int nfsrv_dorec __P((struct nfssvc_sock *, struct nfsd *,
    242       1.3      fvdl 		     struct nfsrv_descript **));
    243       1.1  christos void nfsrv_wakenfsd __P((struct nfssvc_sock *));
    244       1.1  christos 
    245       1.1  christos /* nfs_srvcache.c */
    246       1.3      fvdl void nfsrv_initcache __P((void ));
    247       1.3      fvdl int nfsrv_getcache __P((struct nfsrv_descript *, struct nfssvc_sock *,
    248       1.3      fvdl 			struct mbuf **));
    249       1.3      fvdl void nfsrv_updatecache __P((struct nfsrv_descript *, int, struct mbuf *));
    250       1.1  christos void nfsrv_cleancache __P((void));
    251       1.1  christos 
    252       1.1  christos /* nfs_subs.c */
    253      1.30  drochner struct mbuf *nfsm_reqh __P((struct nfsnode *, u_long, int, caddr_t *));
    254       1.3      fvdl struct mbuf *nfsm_rpchead __P((struct ucred *, int, int, int, int, char *, int,
    255       1.3      fvdl 			       char *, struct mbuf *, int, struct mbuf **,
    256       1.1  christos 			       u_int32_t *));
    257       1.1  christos int nfsm_mbuftouio __P((struct mbuf **, struct uio *, int, caddr_t *));
    258       1.1  christos int nfsm_uiotombuf __P((struct uio *, struct mbuf **, int, caddr_t *));
    259       1.1  christos int nfsm_disct __P((struct mbuf **, caddr_t *, int, int, caddr_t *));
    260       1.1  christos int nfs_adv __P((struct mbuf **, caddr_t *, int, int));
    261       1.5       cgd int nfsm_strtmbuf __P((struct mbuf **, char **, const char *, long));
    262      1.10      fvdl u_long nfs_dirhash __P((off_t));
    263      1.11      fvdl void nfs_initdircache __P((struct vnode *));
    264      1.36      yamt void nfs_initdirxlatecookie __P((struct vnode *));
    265      1.11      fvdl struct nfsdircache *nfs_searchdircache __P((struct vnode *, off_t, int, int *));
    266      1.22  jdolecek struct nfsdircache *nfs_enterdircache __P((struct vnode *, off_t, off_t,						   int, daddr_t));
    267      1.46      yamt void nfs_putdircache __P((struct nfsnode *, struct nfsdircache *));
    268      1.11      fvdl void nfs_invaldircache __P((struct vnode *, int));
    269      1.49      yamt #define	NFS_INVALDIRCACHE_FORCE		1
    270      1.49      yamt #define	NFS_INVALDIRCACHE_KEEPEOF	2
    271       1.3      fvdl void nfs_init __P((void));
    272       1.8      fvdl int nfsm_loadattrcache __P((struct vnode **, struct mbuf **, caddr_t *,
    273      1.24      yamt 			   struct vattr *, int flags));
    274       1.8      fvdl int nfs_loadattrcache __P((struct vnode **, struct nfs_fattr *,
    275      1.24      yamt 			   struct vattr *, int flags));
    276       1.1  christos int nfs_getattrcache __P((struct vnode *, struct vattr *));
    277      1.24      yamt void nfs_delayedtruncate __P((struct vnode *));
    278      1.48      yamt int nfs_check_wccdata __P((struct nfsnode *, const struct timespec *,
    279      1.48      yamt     struct timespec *, boolean_t));
    280      1.29      yamt int nfs_namei __P((struct nameidata *, fhandle_t *, uint32_t,
    281      1.29      yamt 		   struct nfssvc_sock *, struct mbuf *, struct mbuf **,
    282      1.41      fvdl 		   caddr_t *, struct vnode **, struct proc *, int, int));
    283      1.38      yamt void nfs_zeropad __P((struct mbuf *, int, int));
    284       1.3      fvdl void nfsm_srvwcc __P((struct nfsrv_descript *, int, struct vattr *, int,
    285       1.3      fvdl 		      struct vattr *, struct mbuf **, char **));
    286       1.3      fvdl void nfsm_srvpostopattr __P((struct nfsrv_descript *, int, struct vattr *,
    287       1.3      fvdl 			     struct mbuf **, char **));
    288       1.3      fvdl void nfsm_srvfattr __P((struct nfsrv_descript *, struct vattr *,
    289       1.3      fvdl 			struct nfs_fattr *));
    290       1.1  christos int nfsrv_fhtovp __P((fhandle_t *, int, struct vnode **, struct ucred *,
    291      1.40   thorpej 		      struct nfssvc_sock *, struct mbuf *, int *, int, int));
    292       1.7      fvdl int nfs_ispublicfh __P((fhandle_t *));
    293       1.1  christos int netaddr_match __P((int, union nethostaddr *, struct mbuf *));
    294      1.24      yamt 
    295      1.24      yamt /* flags for nfs_loadattrcache and friends */
    296      1.24      yamt #define	NAC_NOTRUNC	1	/* don't truncate file size */
    297      1.18      fvdl 
    298       1.3      fvdl void nfs_clearcommit __P((struct mount *));
    299      1.18      fvdl void nfs_merge_commit_ranges __P((struct vnode *));
    300      1.19       chs int nfs_in_committed_range __P((struct vnode *, off_t, off_t));
    301      1.19       chs int nfs_in_tobecommitted_range __P((struct vnode *, off_t, off_t));
    302      1.19       chs void nfs_add_committed_range __P((struct vnode *, off_t, off_t));
    303      1.19       chs void nfs_del_committed_range __P((struct vnode *, off_t, off_t));
    304      1.19       chs void nfs_add_tobecommitted_range __P((struct vnode *, off_t, off_t));
    305      1.19       chs void nfs_del_tobecommitted_range __P((struct vnode *, off_t, off_t));
    306      1.18      fvdl 
    307       1.3      fvdl int nfsrv_errmap __P((struct nfsrv_descript *, int));
    308       1.3      fvdl void nfsrvw_sort __P((gid_t *, int));
    309       1.3      fvdl void nfsrv_setcred __P((struct ucred *, struct ucred *));
    310      1.41      fvdl void nfs_cookieheuristic __P((struct vnode *, int *, struct proc *,
    311      1.10      fvdl 			      struct ucred *));
    312      1.42      yamt 
    313      1.42      yamt u_int32_t nfs_getxid __P((void));
    314      1.42      yamt void nfs_renewxid __P((struct nfsreq *));
    315       1.1  christos 
    316       1.1  christos /* nfs_syscalls.c */
    317      1.26   thorpej int sys_getfh __P((struct lwp *, void *, register_t *));
    318      1.26   thorpej int sys_nfssvc __P((struct lwp *, void *, register_t *));
    319       1.1  christos int nfssvc_addsock __P((struct file *, struct mbuf *));
    320      1.26   thorpej int nfssvc_nfsd __P((struct nfsd_srvargs *, caddr_t, struct lwp *));
    321       1.1  christos void nfsrv_zapsock __P((struct nfssvc_sock *));
    322       1.1  christos void nfsrv_slpderef __P((struct nfssvc_sock *));
    323       1.1  christos void nfsrv_init __P((int));
    324      1.26   thorpej int nfssvc_iod __P((struct lwp *));
    325      1.33      yamt void nfs_iodinit __P((void));
    326      1.17    tsarna void start_nfsio __P((void *));
    327      1.17    tsarna void nfs_getset_niothreads __P((int));
    328       1.1  christos int nfs_getauth __P((struct nfsmount *, struct nfsreq *, struct ucred *,
    329       1.3      fvdl 		     char **, int *, char *, int *, NFSKERBKEY_T));
    330       1.3      fvdl int nfs_getnickauth __P((struct nfsmount *, struct ucred *, char **, int *,
    331       1.3      fvdl 			 char *, int));
    332       1.3      fvdl int nfs_savenickauth __P((struct nfsmount *, struct ucred *, int, NFSKERBKEY_T,
    333       1.3      fvdl 			  struct mbuf **, char **, struct mbuf *));
    334      1.52      jmmv 
    335      1.52      jmmv /* nfs_export.c */
    336      1.52      jmmv extern struct nfs_public nfs_pub;
    337      1.52      jmmv int mountd_set_exports_list(const struct mountd_exports_list *, struct proc *);
    338      1.52      jmmv int nfs_check_export(struct mount *, struct mbuf *, int *, struct ucred **);
    339      1.53      jmmv #ifdef COMPAT_30
    340      1.53      jmmv int nfs_update_exports_30(struct mount *, const char *, void *, struct proc *);
    341      1.53      jmmv #endif
    342      1.32      yamt #endif /* _KERNEL */
    343