nfsstats.h (2175) | nfsstats.h (3305) |
---|---|
1/* 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Rick Macklem at The University of Guelph. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 20 unchanged lines hidden (view full) --- 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * @(#)nfs.h 8.1 (Berkeley) 6/10/93 | 1/* 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Rick Macklem at The University of Guelph. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 20 unchanged lines hidden (view full) --- 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * @(#)nfs.h 8.1 (Berkeley) 6/10/93 |
37 * $Id: nfs.h,v 1.3 1994/08/04 06:03:46 davidg Exp $ | 37 * $Id: nfs.h,v 1.4 1994/08/21 06:50:08 paul Exp $ |
38 */ 39 40#ifndef _NFS_NFS_H_ 41#define _NFS_NFS_H_ 42 43/* 44 * Tunable constants for nfs 45 */ --- 240 unchanged lines hidden (view full) --- 286 struct mbuf *nd_mrep; /* Req. mbuf list */ 287 struct mbuf *nd_md; 288 caddr_t nd_dpos; /* Position in list */ 289 int nd_procnum; /* RPC procedure number */ 290 u_long nd_retxid; /* RPC xid */ 291 int nd_repstat; /* Reply status value */ 292 struct ucred nd_cr; /* Credentials for req. */ 293 int nd_nqlflag; /* Leasing flag */ | 38 */ 39 40#ifndef _NFS_NFS_H_ 41#define _NFS_NFS_H_ 42 43/* 44 * Tunable constants for nfs 45 */ --- 240 unchanged lines hidden (view full) --- 286 struct mbuf *nd_mrep; /* Req. mbuf list */ 287 struct mbuf *nd_md; 288 caddr_t nd_dpos; /* Position in list */ 289 int nd_procnum; /* RPC procedure number */ 290 u_long nd_retxid; /* RPC xid */ 291 int nd_repstat; /* Reply status value */ 292 struct ucred nd_cr; /* Credentials for req. */ 293 int nd_nqlflag; /* Leasing flag */ |
294 int nd_duration; /* Lease duration */ | 294 u_long nd_duration; /* Lease duration */ |
295 int nd_authlen; /* Authenticator len */ 296 u_char nd_authstr[RPCAUTH_MAXSIZ]; /* Authenticator data */ 297 struct proc *nd_procp; /* Proc ptr */ 298}; 299 300#define NFSD_WAITING 0x01 301#define NFSD_CHECKSLP 0x02 302#define NFSD_REQINPROG 0x04 303#define NFSD_NEEDAUTH 0x08 304#define NFSD_AUTHFAIL 0x10 | 295 int nd_authlen; /* Authenticator len */ 296 u_char nd_authstr[RPCAUTH_MAXSIZ]; /* Authenticator data */ 297 struct proc *nd_procp; /* Proc ptr */ 298}; 299 300#define NFSD_WAITING 0x01 301#define NFSD_CHECKSLP 0x02 302#define NFSD_REQINPROG 0x04 303#define NFSD_NEEDAUTH 0x08 304#define NFSD_AUTHFAIL 0x10 |
305 306int nfs_reply __P((struct nfsreq *)); 307int nfs_getreq __P((struct nfsd *,int)); 308int nfs_send __P((struct socket *,struct mbuf *,struct mbuf *,struct nfsreq *)); 309int nfs_rephead __P((int,struct nfsd *,int,int,u_quad_t *,struct mbuf **,struct mbuf **,caddr_t *)); 310int nfs_sndlock __P((int *,struct nfsreq *)); 311int nfs_disct __P((struct mbuf **,caddr_t *,int,int,caddr_t *)); 312int nfs_vinvalbuf __P((struct vnode *,int,struct ucred *,struct proc *,int)); 313int nfs_readrpc __P((struct vnode *,struct uio *,struct ucred *)); 314int nfs_writerpc __P((struct vnode *,struct uio *,struct ucred *,int)); 315int nfs_readdirrpc __P((register struct vnode *,struct uio *,struct ucred *)); 316int nfs_asyncio __P((struct buf *,struct ucred *)); 317int nfs_doio __P((struct buf *,struct ucred *,struct proc *)); 318int nfs_readlinkrpc __P((struct vnode *,struct uio *,struct ucred *)); 319int nfs_sigintr __P((struct nfsmount *,struct nfsreq *r,struct proc *)); 320int nfs_readdirlookrpc __P((struct vnode *,register struct uio *,struct ucred *)); 321int nfsm_disct __P((struct mbuf **,caddr_t *,int,int,caddr_t *)); 322int nfsrv_fhtovp __P((fhandle_t *,int,struct vnode **,struct ucred *,struct nfssvc_sock *,struct mbuf *,int *)); 323int nfsrv_access __P((struct vnode *,int,struct ucred *,int,struct proc *)); 324int netaddr_match __P((int,union nethostaddr *,struct mbuf *)); 325int nfs_request __P((struct vnode *,struct mbuf *,int,struct proc *,struct ucred *,struct mbuf **,struct mbuf **,caddr_t *)); 326int nfs_loadattrcache __P((struct vnode **,struct mbuf **,caddr_t *,struct vattr *)); 327int nfs_namei __P((struct nameidata *,fhandle_t *,int,struct nfssvc_sock *,struct mbuf *,struct mbuf **,caddr_t *,struct proc *)); 328void nfsm_adj __P((struct mbuf *,int,int)); 329int nfsm_mbuftouio __P((struct mbuf **,struct uio *,int,caddr_t *)); 330void nfsrv_initcache __P((void)); 331int nfs_rcvlock __P((struct nfsreq *)); 332int nfs_getauth __P((struct nfsmount *,struct nfsreq *,struct ucred *,int *,char **,int *)); 333int nfs_msg __P((struct proc *,char *,char *)); 334int nfs_adv __P((struct mbuf **,caddr_t *,int,int)); 335int nfsrv_getstream __P((struct nfssvc_sock *,int)); 336void nfs_nhinit __P((void)); 337void nfs_timer __P((void*)); 338struct nfsnode ** nfs_hash __P((nfsv2fh_t *)); 339int nfssvc_iod __P((struct proc *)); 340int nfssvc_nfsd __P((struct nfsd_srvargs *,caddr_t,struct proc *)); 341int nfssvc_addsock __P((struct file *,struct mbuf *)); 342int nfsrv_dorec __P((struct nfssvc_sock *,struct nfsd *)); 343int nfsrv_getcache __P((struct mbuf *,struct nfsd *,struct mbuf **)); 344void nfsrv_updatecache __P((struct mbuf *,struct nfsd *,int,struct mbuf *)); 345int mountnfs __P((struct nfs_args *,struct mount *,struct mbuf *,char *,char *,struct vnode **)); 346int nfs_connect __P((struct nfsmount *,struct nfsreq *)); 347int nfs_getattrcache __P((struct vnode *,struct vattr *)); 348int nfsm_strtmbuf __P((struct mbuf **,char **,char *,long)); 349int nfs_bioread __P((struct vnode *,struct uio *,int,struct ucred *)); 350int nfsm_uiotombuf __P((struct uio *,struct mbuf **,int,caddr_t *)); 351void nfsrv_init __P((int)); |
|
305#endif /* KERNEL */ 306 307#endif | 352#endif /* KERNEL */ 353 354#endif |