version 1.15, 1998/08/09 21:19:51 |
version 1.16, 2000/03/30 12:51:16 |
Line 165 nfsrv_initcache() |
|
Line 165 nfsrv_initcache() |
|
*/ |
*/ |
int |
int |
nfsrv_getcache(nd, slp, repp) |
nfsrv_getcache(nd, slp, repp) |
register struct nfsrv_descript *nd; |
struct nfsrv_descript *nd; |
struct nfssvc_sock *slp; |
struct nfssvc_sock *slp; |
struct mbuf **repp; |
struct mbuf **repp; |
{ |
{ |
register struct nfsrvcache *rp; |
struct nfsrvcache *rp; |
struct mbuf *mb; |
struct mbuf *mb; |
struct sockaddr_in *saddr; |
struct sockaddr_in *saddr; |
caddr_t bpos; |
caddr_t bpos; |
|
|
*/ |
*/ |
void |
void |
nfsrv_updatecache(nd, repvalid, repmbuf) |
nfsrv_updatecache(nd, repvalid, repmbuf) |
register struct nfsrv_descript *nd; |
struct nfsrv_descript *nd; |
int repvalid; |
int repvalid; |
struct mbuf *repmbuf; |
struct mbuf *repmbuf; |
{ |
{ |
register struct nfsrvcache *rp; |
struct nfsrvcache *rp; |
|
|
if (!nd->nd_nam2) |
if (!nd->nd_nam2) |
return; |
return; |
|
|
void |
void |
nfsrv_cleancache() |
nfsrv_cleancache() |
{ |
{ |
register struct nfsrvcache *rp, *nextrp; |
struct nfsrvcache *rp, *nextrp; |
|
|
for (rp = nfsrvlruhead.tqh_first; rp != 0; rp = nextrp) { |
for (rp = nfsrvlruhead.tqh_first; rp != 0; rp = nextrp) { |
nextrp = rp->rc_lru.tqe_next; |
nextrp = rp->rc_lru.tqe_next; |