Lines Matching defs:nfhp

261 	struct nfsfh *nfhp;
277 nfhp = np->n_fhp;
286 if (nfhp->nfh_len > 0) printf(" fh=0x%x\n",nfhp->nfh_fh[12]);
292 error = nfscl_open(vp, nfhp->nfh_fh, nfhp->nfh_len, mode, 1,
326 nfhp->nfh_fh, nfhp->nfh_len, cred, p, &dp);
373 nfsrpc_openrpc(struct nfsmount *nmp, vnode_t vp, u_int8_t *nfhp, int fhlen,
390 nfscl_reqstart(nd, NFSPROC_OPEN, nmp, nfhp, fhlen, NULL, NULL);
541 ret = nfsrpc_openrpc(nmp, vp, nfhp, fhlen, newfhp,
775 nfsrpc_openconfirm(vnode_t vp, u_int8_t *nfhp, int fhlen,
786 nfscl_reqstart(nd, NFSPROC_OPENCONFIRM, nmp, nfhp, fhlen, NULL, NULL);
1090 struct nfsfh *nfhp;
1105 nfhp = VTONFS(vp)->n_fhp;
1106 error = nfscl_getstateid(vp, nfhp->nfh_fh,
1107 nfhp->nfh_len, mode, 0, cred, p, &stateid, &lckp);
1123 nfhp->nfh_fh, nfhp->nfh_len,
1218 struct nfsfh *nfhp;
1235 MALLOC(nfhp, struct nfsfh *, sizeof (struct nfsfh) +
1237 nfhp->nfh_len = np->n_fhp->nfh_len;
1238 NFSBCOPY(np->n_fhp->nfh_fh, nfhp->nfh_fh, nfhp->nfh_len);
1239 *nfhpp = nfhp;
1267 MALLOC(nfhp, struct nfsfh *, sizeof (struct nfsfh) +
1269 nfhp->nfh_len = np->n_fhp->nfh_len;
1270 NFSBCOPY(np->n_fhp->nfh_fh, nfhp->nfh_fh, nfhp->nfh_len);
1271 *nfhpp = nfhp;
1377 struct nfsfh *nfhp = NULL;
1385 nfhp = np->n_fhp;
1392 (void)nfscl_getstateid(vp, nfhp->nfh_fh, nfhp->nfh_len,
1536 struct nfsfh *nfhp = NULL;
1546 nfhp = np->n_fhp;
1553 (void)nfscl_getstateid(vp, nfhp->nfh_fh, nfhp->nfh_len,
1994 struct nfsfh *nfhp;
2155 nfhp = *nfhpp;
2157 dp->nfsdl_fhlen = nfhp->nfh_len;
2158 NFSBCOPY(nfhp->nfh_fh, dp->nfsdl_fh, nfhp->nfh_len);
2164 error = nfscl_open(dvp, nfhp->nfh_fh, nfhp->nfh_len,
2173 ret = nfsrpc_openconfirm(dvp, nfhp->nfh_fh,
2174 nfhp->nfh_len, op, cred, p);
2193 nfhp->nfh_fh, nfhp->nfh_len,
3173 struct nfsfh *nfhp;
3445 nfhp = NULL;
3458 error = nfsm_getfh(nd, &nfhp);
3462 if (!attrflag && nfhp != NULL) {
3463 FREE((caddr_t)nfhp, M_NFSFH);
3464 nfhp = NULL;
3469 error = nfsv4_loadattr(nd, NULL, &nfsva, &nfhp,
3505 if (nfhp != NULL) {
3506 if (NFSRV_CMPFH(nfhp->nfh_fh, nfhp->nfh_len,
3511 FREE((caddr_t)nfhp, M_NFSFH);
3528 free(nfhp, M_NFSFH);
3531 nfhp, cnp, p, &np, NULL, LK_EXCLUSIVE);
3537 nfhp = NULL;
3568 } else if (nfhp != NULL) {
3569 FREE((caddr_t)nfhp, M_NFSFH);
3706 struct nfsfh *nfhp;
3826 nfhp = VTONFS(vp)->n_fhp;
3831 error = nfsrpc_lock(nd, nmp, vp, nfhp->nfh_fh,
3832 nfhp->nfh_len, lp, newone, reclaim, off,
3994 u_int8_t *nfhp, int fhlen, struct nfscllockowner *lp, int newone,
4003 nfscl_reqstart(nd, NFSPROC_LOCK, nmp, nfhp, fhlen, NULL, NULL);
4031 NFSBCOPY(nfhp, &own[NFSV4CL_LOCKNAMELEN], fhlen);
4791 struct nfsfh *nfhp;
4898 nfhp = malloc(sizeof(*nfhp) + nfhlen - 1,
4900 flp->nfsfl_fh[j] = nfhp;
4902 nfhp->nfh_len = nfhlen;
4904 NFSBCOPY(cp, nfhp->nfh_fh, nfhlen);
5227 nfsrpc_getlayout(struct nfsmount *nmp, vnode_t vp, struct nfsfh *nfhp,
5245 lyp = nfscl_getlayout(nmp->nm_clp, nfhp->nfh_fh, nfhp->nfh_len,
5260 error = nfsrpc_layoutget(nmp, nfhp->nfh_fh,
5261 nfhp->nfh_len, iomode, (uint64_t)0, UINT64_MAX,
5270 error = nfsrpc_layoutget(nmp, nfhp->nfh_fh,
5271 nfhp->nfh_len, iomode, off, UINT64_MAX,
5297 error = nfscl_layout(nmp, vp, nfhp->nfh_fh,
5298 nfhp->nfh_len, &stateid, retonclose, &flh, &lyp,