|
|
1.1 ! root 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: * Redistribution is only permitted until one year after the first shipment ! 9: * of 4.4BSD by the Regents. Otherwise, redistribution and use in source and ! 10: * binary forms are permitted provided that: (1) source distributions retain ! 11: * this entire copyright notice and comment, and (2) distributions including ! 12: * binaries display the following acknowledgement: This product includes ! 13: * software developed by the University of California, Berkeley and its ! 14: * contributors'' in the documentation or other materials provided with the ! 15: * distribution and in all advertising materials mentioning features or use ! 16: * of this software. Neither the name of the University nor the names of ! 17: * its contributors may be used to endorse or promote products derived from ! 18: * this software without specific prior written permission. ! 19: * THIS SOFTWARE IS PROVIDED AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED ! 20: * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF ! 21: * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. ! 22: * ! 23: * @(#)nfsmount.h 7.6 (Berkeley) 6/28/90 ! 24: */ ! 25: ! 26: /* ! 27: * Mount structure. ! 28: * One allocated on every NFS mount. ! 29: * Holds NFS specific information for mount. ! 30: */ ! 31: struct nfsmount { ! 32: int nm_flag; /* Flags for soft/hard... */ ! 33: struct mount *nm_mountp; /* Vfs structure for this filesystem */ ! 34: nfsv2fh_t nm_fh; /* File handle of root dir */ ! 35: struct socket *nm_so; /* Rpc socket */ ! 36: int nm_sotype; /* Type of socket */ ! 37: int nm_soproto; /* and protocol */ ! 38: int nm_soflags; /* pr_flags for socket protocol */ ! 39: struct mbuf *nm_nam; /* Addr of server */ ! 40: short nm_retry; /* Max retry count */ ! 41: short nm_rexmit; /* Rexmit on previous request */ ! 42: short nm_rtt; /* Round trip timer ticks @ NFS_HZ */ ! 43: short nm_rto; /* Current timeout */ ! 44: short nm_srtt; /* Smoothed round trip time */ ! 45: short nm_rttvar; /* RTT variance */ ! 46: short nm_currto; /* Current rto of any nfsmount */ ! 47: short nm_currexmit; /* Max rexmit count of nfsmounts */ ! 48: short nm_sent; /* Request send count */ ! 49: short nm_window; /* Request send window (max) */ ! 50: short nm_winext; /* Window incremental value */ ! 51: short nm_ssthresh; /* Slowstart threshold */ ! 52: short nm_salen; /* Actual length of nm_sockaddr */ ! 53: int nm_rsize; /* Max size of read rpc */ ! 54: int nm_wsize; /* Max size of write rpc */ ! 55: }; ! 56: ! 57: #ifdef KERNEL ! 58: /* ! 59: * Convert mount ptr to nfsmount ptr. ! 60: */ ! 61: #define VFSTONFS(mp) ((struct nfsmount *)((mp)->mnt_data)) ! 62: #endif /* KERNEL */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.