Lines Matching refs:ndp

549 	struct nfscldeleg *dp, *ndp = NULL;
632 ndp = malloc(
635 LIST_INIT(&ndp->nfsdl_owner);
636 LIST_INIT(&ndp->nfsdl_lock);
637 ndp->nfsdl_clp = op->nfso_own->nfsow_clp;
638 ndp->nfsdl_fhlen = newfhlen;
639 NFSBCOPY(newfhp, ndp->nfsdl_fh, newfhlen);
640 newnfs_copyincred(cred, &ndp->nfsdl_cred);
641 nfscl_lockinit(&ndp->nfsdl_rwlock);
644 ndp->nfsdl_stateid.seqid = *tl++;
645 ndp->nfsdl_stateid.other[0] = *tl++;
646 ndp->nfsdl_stateid.other[1] = *tl++;
647 ndp->nfsdl_stateid.other[2] = *tl++;
650 ndp->nfsdl_flags = NFSCLDL_WRITE;
659 ndp->nfsdl_sizelimit = fxdr_hyper(tl);
662 ndp->nfsdl_sizelimit =
664 ndp->nfsdl_sizelimit *=
672 ndp->nfsdl_flags = NFSCLDL_READ;
675 ndp->nfsdl_flags |= NFSCLDL_RECALL;
676 error = nfsrv_dissectace(nd, &ndp->nfsdl_ace, false,
702 if (ndp != NULL) {
704 ndp->nfsdl_change = dp->nfsdl_change;
705 ndp->nfsdl_modtime = dp->nfsdl_modtime;
706 ndp->nfsdl_flags |= NFSCLDL_MODTIMESET;
708 ndp->nfsdl_change = nfsva.na_filerev;
709 ndp->nfsdl_modtime = nfsva.na_mtime;
710 ndp->nfsdl_flags |= NFSCLDL_MODTIMESET;
712 ndp->nfsdl_flags |= NFSCLDL_RECALL;
738 && !error && dp == NULL && ndp == NULL && !recursed) {
741 newfhlen, mode, op, name, namelen, &ndp, 0, 0x0,
747 if (ndp != NULL) {
748 free(ndp, M_NFSCLDELEG);
749 ndp = NULL;
764 *dpp = ndp;
765 else if (ndp != NULL)
766 free(ndp, M_NFSCLDELEG);
1512 struct nfscldeleg *ndp;
1582 ndp = NULL;
1680 ndp = malloc(sizeof(struct nfscldeleg) +
1682 ndp->nfsdl_fhlen = (*nfhpp)->nfh_len;
1683 NFSBCOPY((*nfhpp)->nfh_fh, ndp->nfsdl_fh,
1684 ndp->nfsdl_fhlen);
1685 newnfs_copyincred(cred, &ndp->nfsdl_cred);
1687 ndp->nfsdl_stateid.seqid = *tl++;
1688 ndp->nfsdl_stateid.other[0] = *tl++;
1689 ndp->nfsdl_stateid.other[1] = *tl++;
1690 ndp->nfsdl_stateid.other[2] = *tl++;
1723 if (ndp != NULL) {
1729 nfscl_trydelegreturn(ndp, cred, nmp, p);
1738 free(ndp, M_NFSCLDELEG);
3864 struct nameidata nami, *ndp = &nami;
3865 struct componentname *cnp = &ndp->ni_cnd;
3893 ndp->ni_dvp = vp;
4320 ndp->ni_vp = newvp;
4323 ndp->ni_dvp != ndp->ni_vp &&
4326 cache_enter_time_flags(ndp->ni_dvp,
4327 ndp->ni_vp, cnp,
8231 struct nfscldeleg *ndp = NULL;
8300 ndp = malloc(sizeof(struct nfscldeleg) + newfhlen,
8302 LIST_INIT(&ndp->nfsdl_owner);
8303 LIST_INIT(&ndp->nfsdl_lock);
8304 ndp->nfsdl_clp = op->nfso_own->nfsow_clp;
8305 ndp->nfsdl_fhlen = newfhlen;
8306 NFSBCOPY(newfhp, ndp->nfsdl_fh, newfhlen);
8307 newnfs_copyincred(cred, &ndp->nfsdl_cred);
8308 nfscl_lockinit(&ndp->nfsdl_rwlock);
8311 ndp->nfsdl_stateid.seqid = *tl++;
8312 ndp->nfsdl_stateid.other[0] = *tl++;
8313 ndp->nfsdl_stateid.other[1] = *tl++;
8314 ndp->nfsdl_stateid.other[2] = *tl++;
8317 ndp->nfsdl_flags = NFSCLDL_WRITE;
8326 ndp->nfsdl_sizelimit = fxdr_hyper(tl);
8329 ndp->nfsdl_sizelimit =
8331 ndp->nfsdl_sizelimit *=
8339 ndp->nfsdl_flags = NFSCLDL_READ;
8341 ndp->nfsdl_flags |= NFSCLDL_RECALL;
8342 error = nfsrv_dissectace(nd, &ndp->nfsdl_ace, false,
8370 if (ndp != NULL) {
8371 ndp->nfsdl_change = nfsva.na_filerev;
8372 ndp->nfsdl_modtime = nfsva.na_mtime;
8373 ndp->nfsdl_flags |= NFSCLDL_MODTIMESET;
8374 *dpp = ndp;
8375 ndp = NULL;
8398 free(ndp, M_NFSCLDELEG);