Lines Matching defs:nfhp
266 struct nfsfh *nfhp;
282 nfhp = np->n_fhp;
291 if (nfhp->nfh_len > 0) printf(" fh=0x%x\n",nfhp->nfh_fh[12]);
297 error = nfscl_open(vp, nfhp->nfh_fh, nfhp->nfh_len, mode, 1,
331 nfhp->nfh_fh, nfhp->nfh_len, cred, p, &dp);
378 nfsrpc_openrpc(struct nfsmount *nmp, vnode_t vp, u_int8_t *nfhp, int fhlen,
394 nfscl_reqstart(nd, NFSPROC_OPEN, nmp, nfhp, fhlen, NULL, NULL);
544 ret = nfsrpc_openrpc(nmp, vp, nfhp, fhlen, newfhp,
780 nfsrpc_openconfirm(vnode_t vp, u_int8_t *nfhp, int fhlen,
791 nfscl_reqstart(nd, NFSPROC_OPENCONFIRM, nmp, nfhp, fhlen, NULL, NULL);
1075 struct nfsfh *nfhp;
1090 nfhp = VTONFS(vp)->n_fhp;
1091 error = nfscl_getstateid(vp, nfhp->nfh_fh,
1092 nfhp->nfh_len, mode, 0, cred, p, &stateid, &lckp);
1108 nfhp->nfh_fh, nfhp->nfh_len,
1196 struct nfsfh *nfhp;
1213 MALLOC(nfhp, struct nfsfh *, sizeof (struct nfsfh) +
1215 nfhp->nfh_len = np->n_fhp->nfh_len;
1216 NFSBCOPY(np->n_fhp->nfh_fh, nfhp->nfh_fh, nfhp->nfh_len);
1217 *nfhpp = nfhp;
1245 MALLOC(nfhp, struct nfsfh *, sizeof (struct nfsfh) +
1247 nfhp->nfh_len = np->n_fhp->nfh_len;
1248 NFSBCOPY(np->n_fhp->nfh_fh, nfhp->nfh_fh, nfhp->nfh_len);
1249 *nfhpp = nfhp;
1355 struct nfsfh *nfhp = NULL;
1363 nfhp = np->n_fhp;
1370 (void)nfscl_getstateid(vp, nfhp->nfh_fh, nfhp->nfh_len,
1507 struct nfsfh *nfhp = NULL;
1517 nfhp = np->n_fhp;
1524 (void)nfscl_getstateid(vp, nfhp->nfh_fh, nfhp->nfh_len,
1964 struct nfsfh *nfhp;
2123 nfhp = *nfhpp;
2125 dp->nfsdl_fhlen = nfhp->nfh_len;
2126 NFSBCOPY(nfhp->nfh_fh, dp->nfsdl_fh, nfhp->nfh_len);
2132 error = nfscl_open(dvp, nfhp->nfh_fh, nfhp->nfh_len,
2141 ret = nfsrpc_openconfirm(dvp, nfhp->nfh_fh,
2142 nfhp->nfh_len, op, cred, p);
2161 nfhp->nfh_fh, nfhp->nfh_len,
3140 struct nfsfh *nfhp;
3412 nfhp = NULL;
3425 error = nfsm_getfh(nd, &nfhp);
3429 if (!attrflag && nfhp != NULL) {
3430 FREE((caddr_t)nfhp, M_NFSFH);
3431 nfhp = NULL;
3436 error = nfsv4_loadattr(nd, NULL, &nfsva, &nfhp,
3472 if (nfhp != NULL) {
3473 if (NFSRV_CMPFH(nfhp->nfh_fh, nfhp->nfh_len,
3478 FREE((caddr_t)nfhp, M_NFSFH);
3495 free(nfhp, M_NFSFH);
3498 nfhp, cnp, p, &np, NULL, LK_EXCLUSIVE);
3504 nfhp = NULL;
3535 } else if (nfhp != NULL) {
3536 FREE((caddr_t)nfhp, M_NFSFH);
3672 struct nfsfh *nfhp;
3792 nfhp = VTONFS(vp)->n_fhp;
3797 error = nfsrpc_lock(nd, nmp, vp, nfhp->nfh_fh,
3798 nfhp->nfh_len, lp, newone, reclaim, off,
3960 u_int8_t *nfhp, int fhlen, struct nfscllockowner *lp, int newone,
3968 nfscl_reqstart(nd, NFSPROC_LOCK, nmp, nfhp, fhlen, NULL, NULL);
3995 NFSBCOPY(nfhp, &own[NFSV4CL_LOCKNAMELEN], fhlen);
4715 struct nfsfh *nfhp;
4822 nfhp = malloc(sizeof(*nfhp) + nfhlen - 1,
4824 flp->nfsfl_fh[j] = nfhp;
4826 nfhp->nfh_len = nfhlen;
4828 NFSBCOPY(cp, nfhp->nfh_fh, nfhlen);
5151 nfsrpc_getlayout(struct nfsmount *nmp, vnode_t vp, struct nfsfh *nfhp,
5168 lyp = nfscl_getlayout(nmp->nm_clp, nfhp->nfh_fh, nfhp->nfh_len,
5182 error = nfsrpc_layoutget(nmp, nfhp->nfh_fh,
5183 nfhp->nfh_len, iomode, (uint64_t)0, INT64_MAX,
5192 error = nfsrpc_layoutget(nmp, nfhp->nfh_fh,
5193 nfhp->nfh_len, iomode, off, INT64_MAX,
5219 error = nfscl_layout(nmp, vp, nfhp->nfh_fh,
5220 nfhp->nfh_len, &stateid, retonclose, &flh, &lyp,