Home | History | Annotate | Line # | Download | only in nfs
nfs_var.h revision 1.57
      1  1.57      yamt /*	$NetBSD: nfs_var.h,v 1.57 2006/01/03 12:59:49 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.1  christos 
     85   1.1  christos /* nfs_bio.c */
     86  1.57      yamt int nfs_bioread(struct vnode *, struct uio *, int, struct ucred *, int);
     87  1.57      yamt struct buf *nfs_getcacheblk(struct vnode *, daddr_t, int, struct lwp *);
     88  1.57      yamt int nfs_vinvalbuf(struct vnode *, int, struct ucred *, struct lwp *, int);
     89  1.57      yamt int nfs_flushstalebuf(struct vnode *, struct ucred *, struct lwp *, int);
     90  1.47      yamt #define	NFS_FLUSHSTALEBUF_MYWRITE	1	/* assume writes are ours */
     91  1.57      yamt int nfs_asyncio(struct buf *);
     92  1.57      yamt int nfs_doio(struct buf *);
     93   1.1  christos 
     94   1.1  christos /* nfs_boot.c */
     95   1.9       gwr /* see nfsdiskless.h */
     96  1.25  jdolecek 
     97  1.25  jdolecek /* nfs_kq.c */
     98  1.57      yamt void nfs_kqinit(void);
     99   1.1  christos 
    100   1.1  christos /* nfs_node.c */
    101  1.57      yamt void nfs_nhinit(void);
    102  1.57      yamt void nfs_nhreinit(void);
    103  1.57      yamt void nfs_nhdone(void);
    104  1.57      yamt int nfs_nget1(struct mount *, nfsfh_t *, int, struct nfsnode **, int);
    105  1.43      yamt #define	nfs_nget(mp, fhp, fhsize, npp) \
    106  1.43      yamt 	nfs_nget1((mp), (fhp), (fhsize), (npp), 0)
    107   1.1  christos 
    108   1.1  christos /* nfs_vnops.c */
    109  1.57      yamt int nfs_null(struct vnode *, struct ucred *, struct lwp *);
    110  1.57      yamt int nfs_setattrrpc(struct vnode *, struct vattr *, struct ucred *,
    111  1.57      yamt 	struct lwp *);
    112  1.57      yamt int nfs_readlinkrpc(struct vnode *, struct uio *, struct ucred *);
    113  1.57      yamt int nfs_readrpc(struct vnode *, struct uio *);
    114  1.57      yamt int nfs_writerpc(struct vnode *, struct uio *, int *, boolean_t, boolean_t *);
    115  1.57      yamt int nfs_mknodrpc(struct vnode *, struct vnode **, struct componentname *,
    116  1.57      yamt 	struct vattr *);
    117  1.57      yamt int nfs_removeit(struct sillyrename *);
    118  1.57      yamt int nfs_removerpc(struct vnode *, const char *, int, struct ucred *,
    119  1.57      yamt 	struct lwp *);
    120  1.57      yamt int nfs_renameit(struct vnode *, struct componentname *, struct sillyrename *);
    121  1.57      yamt int nfs_renamerpc(struct vnode *, const char *, int, struct vnode *,
    122  1.57      yamt 	const char *, int, struct ucred *, struct lwp *);
    123  1.57      yamt int nfs_readdirrpc(struct vnode *, struct uio *, struct ucred *);
    124  1.57      yamt int nfs_readdirplusrpc(struct vnode *, struct uio *, struct ucred *);
    125  1.57      yamt int nfs_sillyrename(struct vnode *, struct vnode *, struct componentname *);
    126  1.57      yamt int nfs_lookitup(struct vnode *, const char *, int, struct ucred *,
    127  1.57      yamt 	struct lwp *, struct nfsnode **);
    128  1.57      yamt int nfs_commit(struct vnode *, off_t, uint32_t, struct lwp *);
    129  1.57      yamt int nfs_flush(struct vnode *, struct ucred *, int, struct lwp *, int);
    130   1.1  christos 
    131   1.1  christos /* nfs_nqlease.c */
    132  1.57      yamt void nqnfs_lease_updatetime(int);
    133  1.57      yamt void nqnfs_clientlease(struct nfsmount *, struct nfsnode *, int, int, time_t,
    134  1.57      yamt 	u_quad_t);
    135  1.57      yamt void nqsrv_locklease(struct nqlease *);
    136  1.57      yamt void nqsrv_unlocklease(struct nqlease *);
    137  1.57      yamt int nqsrv_getlease(struct vnode *, u_int32_t *, int, struct nfssvc_sock *,
    138  1.57      yamt 	struct lwp *, struct mbuf *, int *, u_quad_t *, struct ucred *);
    139  1.57      yamt void nqsrv_addhost(struct nqhost *, struct nfssvc_sock *, struct mbuf *);
    140  1.57      yamt void nqsrv_instimeq(struct nqlease *, u_int32_t);
    141  1.57      yamt int nqsrv_cmpnam(struct nfssvc_sock *, struct mbuf *, struct nqhost *);
    142  1.57      yamt void nqsrv_send_eviction(struct vnode *, struct nqlease *,
    143  1.57      yamt 	struct nfssvc_sock *, struct mbuf *, struct ucred *, struct lwp *);
    144  1.57      yamt void nqsrv_waitfor_expiry(struct nqlease *);
    145  1.57      yamt void nqnfs_serverd(void);
    146  1.57      yamt int nqnfsrv_getlease(struct nfsrv_descript *, struct nfssvc_sock *,
    147  1.57      yamt 	struct lwp *, struct mbuf **);
    148  1.57      yamt int nqnfsrv_vacated(struct nfsrv_descript *, struct nfssvc_sock *,
    149  1.57      yamt 	struct lwp *, struct mbuf **);
    150  1.57      yamt int nqnfs_getlease(struct vnode *, int, struct ucred *, struct lwp *);
    151  1.57      yamt int nqnfs_vacated(struct vnode *, struct ucred *, struct lwp *);
    152  1.57      yamt int nqnfs_callback(struct nfsmount *, struct mbuf *, struct mbuf *,
    153  1.57      yamt 	caddr_t, struct lwp *);
    154   1.1  christos 
    155   1.1  christos /* nfs_serv.c */
    156  1.57      yamt int nfsrv3_access(struct nfsrv_descript *, struct nfssvc_sock *,
    157  1.57      yamt 	struct lwp *, struct mbuf **);
    158  1.57      yamt int nfsrv_getattr(struct nfsrv_descript *, struct nfssvc_sock *,
    159  1.57      yamt 	struct lwp *, struct mbuf **);
    160  1.57      yamt int nfsrv_setattr(struct nfsrv_descript *, struct nfssvc_sock *,
    161  1.57      yamt 	struct lwp *, struct mbuf **);
    162  1.57      yamt int nfsrv_lookup(struct nfsrv_descript *, struct nfssvc_sock *,
    163  1.57      yamt 	struct lwp *, struct mbuf **);
    164  1.57      yamt int nfsrv_readlink(struct nfsrv_descript *, struct nfssvc_sock *,
    165  1.57      yamt 	struct lwp *, struct mbuf **);
    166  1.57      yamt int nfsrv_read(struct nfsrv_descript *, struct nfssvc_sock *,
    167  1.57      yamt 	struct lwp *, struct mbuf **);
    168  1.57      yamt int nfsrv_write(struct nfsrv_descript *, struct nfssvc_sock *,
    169  1.57      yamt 	struct lwp *, struct mbuf **);
    170  1.57      yamt int nfsrv_writegather(struct nfsrv_descript **, struct nfssvc_sock *,
    171  1.57      yamt 	struct lwp *, struct mbuf **);
    172  1.57      yamt void nfsrvw_coalesce(struct nfsrv_descript *, struct nfsrv_descript *);
    173  1.57      yamt int nfsrv_create(struct nfsrv_descript *, struct nfssvc_sock *,
    174  1.57      yamt 	struct lwp *, struct mbuf **);
    175  1.57      yamt int nfsrv_mknod(struct nfsrv_descript *, struct nfssvc_sock *,
    176  1.57      yamt 	struct lwp *, struct mbuf **);
    177  1.57      yamt int nfsrv_remove(struct nfsrv_descript *, struct nfssvc_sock *,
    178  1.57      yamt 	struct lwp *, struct mbuf **);
    179  1.57      yamt int nfsrv_rename(struct nfsrv_descript *, struct nfssvc_sock *,
    180  1.57      yamt 	struct lwp *, struct mbuf **);
    181  1.57      yamt int nfsrv_link(struct nfsrv_descript *, struct nfssvc_sock *,
    182  1.57      yamt 	struct lwp *, struct mbuf **);
    183  1.57      yamt int nfsrv_symlink(struct nfsrv_descript *, struct nfssvc_sock *,
    184  1.57      yamt 	struct lwp *, struct mbuf **);
    185  1.57      yamt int nfsrv_mkdir(struct nfsrv_descript *, struct nfssvc_sock *,
    186  1.57      yamt 	struct lwp *, struct mbuf **);
    187  1.57      yamt int nfsrv_rmdir(struct nfsrv_descript *, struct nfssvc_sock *,
    188  1.57      yamt 	struct lwp *, struct mbuf **);
    189  1.57      yamt int nfsrv_readdir(struct nfsrv_descript *, struct nfssvc_sock *,
    190  1.57      yamt 	struct lwp *, struct mbuf **);
    191  1.57      yamt int nfsrv_readdirplus(struct nfsrv_descript *, struct nfssvc_sock *,
    192  1.57      yamt 	struct lwp *, struct mbuf **);
    193  1.57      yamt int nfsrv_commit(struct nfsrv_descript *, struct nfssvc_sock *,
    194  1.57      yamt 	struct lwp *, struct mbuf **);
    195  1.57      yamt int nfsrv_statfs(struct nfsrv_descript *, struct nfssvc_sock *,
    196  1.57      yamt 	struct lwp *, struct mbuf **);
    197  1.57      yamt int nfsrv_fsinfo(struct nfsrv_descript *, struct nfssvc_sock *,
    198  1.57      yamt 	struct lwp *, struct mbuf **);
    199  1.57      yamt int nfsrv_pathconf(struct nfsrv_descript *, struct nfssvc_sock *,
    200  1.57      yamt 	struct lwp *, struct mbuf **);
    201  1.57      yamt int nfsrv_null(struct nfsrv_descript *, struct nfssvc_sock *,
    202  1.57      yamt 	struct lwp *, struct mbuf **);
    203  1.57      yamt int nfsrv_noop(struct nfsrv_descript *, struct nfssvc_sock *,
    204  1.57      yamt 	struct lwp *, struct mbuf **);
    205  1.57      yamt int nfsrv_access(struct vnode *, int, struct ucred *, int, struct lwp *, int);
    206   1.1  christos 
    207   1.1  christos /* nfs_socket.c */
    208  1.57      yamt int nfs_connect(struct nfsmount *, struct nfsreq *, struct lwp *);
    209  1.57      yamt int nfs_reconnect(struct nfsreq *, struct lwp *);
    210  1.57      yamt void nfs_disconnect(struct nfsmount *);
    211  1.57      yamt void nfs_safedisconnect(struct nfsmount *);
    212  1.57      yamt int nfs_send(struct socket *, struct mbuf *, struct mbuf *, struct nfsreq *,
    213  1.57      yamt 	struct lwp *);
    214  1.57      yamt int nfs_receive(struct nfsreq *, struct mbuf **, struct mbuf **, struct lwp *);
    215  1.57      yamt int nfs_reply(struct nfsreq *, struct lwp *);
    216  1.57      yamt int nfs_request(struct nfsnode *, struct mbuf *, int, struct lwp *,
    217  1.57      yamt 	struct ucred *, struct mbuf **, struct mbuf **, caddr_t *, int *);
    218  1.57      yamt int nfs_rephead(int, struct nfsrv_descript *, struct nfssvc_sock *,
    219  1.57      yamt 	int, int, u_quad_t *, struct mbuf **, struct mbuf **, caddr_t *);
    220  1.57      yamt void nfs_timer(void *);
    221  1.57      yamt int nfs_sigintr(struct nfsmount *, struct nfsreq *, struct lwp *);
    222  1.57      yamt int nfs_sndlock(int *, struct nfsreq *);
    223  1.57      yamt void nfs_exit(struct proc *, void *);
    224  1.57      yamt void nfs_sndunlock(int *);
    225  1.57      yamt int nfs_rcvlock(struct nfsreq *);
    226  1.57      yamt void nfs_rcvunlock(struct nfsmount *);
    227  1.57      yamt int nfs_getreq(struct nfsrv_descript *, struct nfsd *, int);
    228  1.57      yamt int nfs_msg(struct lwp *, const char *, const char *);
    229  1.57      yamt void nfsrv_rcv(struct socket *, caddr_t, int);
    230  1.57      yamt int nfsrv_getstream(struct nfssvc_sock *, int);
    231  1.57      yamt int nfsrv_dorec(struct nfssvc_sock *, struct nfsd *, struct nfsrv_descript **);
    232  1.57      yamt void nfsrv_wakenfsd(struct nfssvc_sock *);
    233  1.56      yamt int nfsdsock_lock(struct nfssvc_sock *, boolean_t);
    234  1.56      yamt void nfsdsock_unlock(struct nfssvc_sock *);
    235  1.56      yamt int nfsdsock_drain(struct nfssvc_sock *);
    236  1.56      yamt int nfsdsock_sendreply(struct nfssvc_sock *, struct nfsrv_descript *);
    237   1.1  christos 
    238   1.1  christos /* nfs_srvcache.c */
    239  1.57      yamt void nfsrv_initcache(void);
    240  1.57      yamt int nfsrv_getcache(struct nfsrv_descript *, struct nfssvc_sock *,
    241  1.57      yamt 	struct mbuf **);
    242  1.57      yamt void nfsrv_updatecache(struct nfsrv_descript *, int, struct mbuf *);
    243  1.57      yamt void nfsrv_cleancache(void);
    244   1.1  christos 
    245   1.1  christos /* nfs_subs.c */
    246  1.57      yamt struct mbuf *nfsm_reqh(struct nfsnode *, u_long, int, caddr_t *);
    247  1.57      yamt struct mbuf *nfsm_rpchead(struct ucred *, int, int, int, int, char *, int,
    248  1.57      yamt 	char *, struct mbuf *, int, struct mbuf **, u_int32_t *);
    249  1.57      yamt int nfsm_mbuftouio(struct mbuf **, struct uio *, int, caddr_t *);
    250  1.57      yamt int nfsm_uiotombuf(struct uio *, struct mbuf **, int, caddr_t *);
    251  1.57      yamt int nfsm_disct(struct mbuf **, caddr_t *, int, int, caddr_t *);
    252  1.57      yamt int nfs_adv(struct mbuf **, caddr_t *, int, int);
    253  1.57      yamt int nfsm_strtmbuf(struct mbuf **, char **, const char *, long);
    254  1.57      yamt u_long nfs_dirhash(off_t);
    255  1.57      yamt void nfs_initdircache(struct vnode *);
    256  1.57      yamt void nfs_initdirxlatecookie(struct vnode *);
    257  1.57      yamt struct nfsdircache *nfs_searchdircache(struct vnode *, off_t, int, int *);
    258  1.57      yamt struct nfsdircache *nfs_enterdircache(struct vnode *, off_t, off_t, int,
    259  1.57      yamt 	daddr_t);
    260  1.57      yamt void nfs_putdircache(struct nfsnode *, struct nfsdircache *);
    261  1.57      yamt void nfs_invaldircache(struct vnode *, int);
    262  1.49      yamt #define	NFS_INVALDIRCACHE_FORCE		1
    263  1.49      yamt #define	NFS_INVALDIRCACHE_KEEPEOF	2
    264   1.3      fvdl void nfs_init __P((void));
    265  1.57      yamt int nfsm_loadattrcache(struct vnode **, struct mbuf **, caddr_t *,
    266  1.57      yamt 	struct vattr *, int flags);
    267  1.57      yamt int nfs_loadattrcache(struct vnode **, struct nfs_fattr *, struct vattr *,
    268  1.57      yamt 	int flags);
    269  1.57      yamt int nfs_getattrcache(struct vnode *, struct vattr *);
    270  1.57      yamt void nfs_delayedtruncate(struct vnode *);
    271  1.57      yamt int nfs_check_wccdata(struct nfsnode *, const struct timespec *,
    272  1.57      yamt 	struct timespec *, boolean_t);
    273  1.57      yamt int nfs_namei(struct nameidata *, fhandle_t *, uint32_t, struct nfssvc_sock *,
    274  1.57      yamt 	struct mbuf *, struct mbuf **, caddr_t *, struct vnode **, struct lwp *,
    275  1.57      yamt 	int, int);
    276  1.57      yamt void nfs_zeropad(struct mbuf *, int, int);
    277  1.57      yamt void nfsm_srvwcc(struct nfsrv_descript *, int, struct vattr *, int,
    278  1.57      yamt 	struct vattr *, struct mbuf **, char **);
    279  1.57      yamt void nfsm_srvpostopattr(struct nfsrv_descript *, int, struct vattr *,
    280  1.57      yamt 	struct mbuf **, char **);
    281  1.57      yamt void nfsm_srvfattr(struct nfsrv_descript *, struct vattr *, struct nfs_fattr *);
    282  1.57      yamt int nfsrv_fhtovp(fhandle_t *, int, struct vnode **, struct ucred *,
    283  1.57      yamt 	struct nfssvc_sock *, struct mbuf *, int *, int, int);
    284   1.7      fvdl int nfs_ispublicfh __P((fhandle_t *));
    285  1.57      yamt int netaddr_match(int, union nethostaddr *, struct mbuf *);
    286  1.24      yamt 
    287  1.24      yamt /* flags for nfs_loadattrcache and friends */
    288  1.24      yamt #define	NAC_NOTRUNC	1	/* don't truncate file size */
    289  1.18      fvdl 
    290  1.57      yamt void nfs_clearcommit(struct mount *);
    291  1.57      yamt void nfs_merge_commit_ranges(struct vnode *);
    292  1.57      yamt int nfs_in_committed_range(struct vnode *, off_t, off_t);
    293  1.57      yamt int nfs_in_tobecommitted_range(struct vnode *, off_t, off_t);
    294  1.57      yamt void nfs_add_committed_range(struct vnode *, off_t, off_t);
    295  1.57      yamt void nfs_del_committed_range(struct vnode *, off_t, off_t);
    296  1.57      yamt void nfs_add_tobecommitted_range(struct vnode *, off_t, off_t);
    297  1.57      yamt void nfs_del_tobecommitted_range(struct vnode *, off_t, off_t);
    298  1.57      yamt 
    299  1.57      yamt int nfsrv_errmap(struct nfsrv_descript *, int);
    300  1.57      yamt void nfsrvw_sort(gid_t *, int);
    301  1.57      yamt void nfsrv_setcred(struct ucred *, struct ucred *);
    302  1.57      yamt void nfs_cookieheuristic(struct vnode *, int *, struct lwp *, struct ucred *);
    303  1.42      yamt 
    304  1.57      yamt u_int32_t nfs_getxid(void);
    305  1.57      yamt void nfs_renewxid(struct nfsreq *);
    306   1.1  christos 
    307   1.1  christos /* nfs_syscalls.c */
    308  1.57      yamt int sys_getfh(struct lwp *, void *, register_t *);
    309  1.57      yamt int sys_nfssvc(struct lwp *, void *, register_t *);
    310  1.57      yamt int nfssvc_addsock(struct file *, struct mbuf *);
    311  1.57      yamt int nfssvc_nfsd(struct nfsd_srvargs *, caddr_t, struct lwp *);
    312  1.57      yamt void nfsrv_zapsock(struct nfssvc_sock *);
    313  1.57      yamt void nfsrv_slpderef(struct nfssvc_sock *);
    314  1.57      yamt void nfsrv_init(int);
    315  1.57      yamt int nfssvc_iod(struct lwp *);
    316  1.57      yamt void nfs_iodinit(void);
    317  1.57      yamt void start_nfsio(void *);
    318  1.57      yamt void nfs_getset_niothreads(int);
    319  1.57      yamt int nfs_getauth(struct nfsmount *, struct nfsreq *, struct ucred *, char **,
    320  1.57      yamt 	int *, char *, int *, NFSKERBKEY_T);
    321  1.57      yamt int nfs_getnickauth(struct nfsmount *, struct ucred *, char **, int *, char *,
    322  1.57      yamt 	int);
    323  1.57      yamt int nfs_savenickauth(struct nfsmount *, struct ucred *, int, NFSKERBKEY_T,
    324  1.57      yamt 	struct mbuf **, char **, struct mbuf *);
    325  1.52      jmmv 
    326  1.52      jmmv /* nfs_export.c */
    327  1.52      jmmv extern struct nfs_public nfs_pub;
    328  1.55  christos int mountd_set_exports_list(const struct mountd_exports_list *, struct lwp *);
    329  1.54      yamt int netexport_check(const fsid_t *, struct mbuf *, struct mount **, int *,
    330  1.54      yamt     struct ucred **);
    331  1.53      jmmv #ifdef COMPAT_30
    332  1.55  christos int nfs_update_exports_30(struct mount *, const char *, void *, struct lwp *);
    333  1.53      jmmv #endif
    334  1.32      yamt #endif /* _KERNEL */
    335