Lines Matching refs:nmp

105 void nfs_mux_take(struct nfsmount *nmp)
107 (void)pthread_mutex_lock(&nmp->nm_mux);
114 void nfs_mux_release(struct nfsmount *nmp)
116 (void)pthread_mutex_unlock(&nmp->nm_mux);
128 int nfs_checkmount(struct nfsmount *nmp)
136 DEBUGASSERT(nmp);
137 if (!nmp->nm_mounted)
141 for (file = nmp->nm_head; file; file = file->n_next)
164 int nfs_request(struct nfsmount *nmp, int procnum,
168 struct rpcclnt *clnt = nmp->nm_rpcclnt;
186 error = rpcclnt_connect(nmp->nm_rpcclnt);
246 int nfs_lookup(struct nfsmount *nmp, const char *filename,
257 DEBUGASSERT(nmp && filename && fhandle);
270 ptr = (uint32_t *)&nmp->nm_msgbuffer.lookup.lookup;
293 error = nfs_request(nmp, NFSPROC_LOOKUP,
294 (void *)&nmp->nm_msgbuffer.lookup, reqlen,
295 (void *)nmp->nm_iobuffer, nmp->nm_buflen);
308 ptr = (uint32_t *)&((struct rpc_reply_lookup *)nmp->nm_iobuffer)->lookup;
366 int nfs_findnode(struct nfsmount *nmp, const char *relpath,
379 fhandle->length = nmp->nm_fhsize;
380 memcpy(&fhandle->handle, &nmp->nm_fh, nmp->nm_fhsize);
392 memcpy(obj_attributes, &nmp->nm_fattr, sizeof(struct nfs_fattr));
397 memcpy(dir_attributes, &nmp->nm_fattr, sizeof(struct nfs_fattr));
423 error = nfs_lookup(nmp, buffer, fhandle, obj_attributes, dir_attributes);
475 int nfs_finddir(struct nfsmount *nmp, const char *relpath,
495 fhandle->length = nmp->nm_fhsize;
496 memcpy(&fhandle->handle, &nmp->nm_fh, nmp->nm_fhsize);
497 memcpy(attributes, &nmp->nm_fattr, sizeof(struct nfs_fattr));
531 error = nfs_lookup(nmp, filename, fhandle, attributes, NULL);