1 /* 2 * Copyright (c) 1989 The Regents of the University of California. 3 * 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 * %sccs.include.redist.c% 9 * 10 * @(#)nfsmount.h 7.6 (Berkeley) 06/28/90 11 */ 12 13 /* 14 * Mount structure. 15 * One allocated on every NFS mount. 16 * Holds NFS specific information for mount. 17 */ 18 struct nfsmount { 19 int nm_flag; /* Flags for soft/hard... */ 20 struct mount *nm_mountp; /* Vfs structure for this filesystem */ 21 nfsv2fh_t nm_fh; /* File handle of root dir */ 22 struct socket *nm_so; /* Rpc socket */ 23 int nm_sotype; /* Type of socket */ 24 int nm_soproto; /* and protocol */ 25 int nm_soflags; /* pr_flags for socket protocol */ 26 struct mbuf *nm_nam; /* Addr of server */ 27 short nm_retry; /* Max retry count */ 28 short nm_rexmit; /* Rexmit on previous request */ 29 short nm_rtt; /* Round trip timer ticks @ NFS_HZ */ 30 short nm_rto; /* Current timeout */ 31 short nm_srtt; /* Smoothed round trip time */ 32 short nm_rttvar; /* RTT variance */ 33 short nm_currto; /* Current rto of any nfsmount */ 34 short nm_currexmit; /* Max rexmit count of nfsmounts */ 35 short nm_sent; /* Request send count */ 36 short nm_window; /* Request send window (max) */ 37 short nm_winext; /* Window incremental value */ 38 short nm_ssthresh; /* Slowstart threshold */ 39 short nm_salen; /* Actual length of nm_sockaddr */ 40 int nm_rsize; /* Max size of read rpc */ 41 int nm_wsize; /* Max size of write rpc */ 42 }; 43 44 #ifdef KERNEL 45 /* 46 * Convert mount ptr to nfsmount ptr. 47 */ 48 #define VFSTONFS(mp) ((struct nfsmount *)((mp)->mnt_data)) 49 #endif /* KERNEL */ 50