Lines Matching refs:ni_dvp

165 	struct vnode *usedvp = ndp->ni_dvp;  /* store pointer to vp in case we must loop due to
337 dp = ndp->ni_dvp;
346 ndp->ni_dvp = NULLVP;
371 * if either ni_dvp or ni_vp is non-NULL, then
376 if (ndp->ni_dvp)
377 vnode_put(ndp->ni_dvp);
387 ndp->ni_dvp = NULLVP;
392 ndp->ni_dvp = usedvp;
454 * check to make sure that ni_dvp is valid
469 * Can change ni_dvp and ni_vp. On success, returns with iocounts on stream vnode (always) and
526 if (ndp->ni_dvp) {
530 unlock_fsnode(ndp->ni_dvp, NULL);
533 vnode_put(ndp->ni_dvp);
535 ndp->ni_dvp = dp;
555 * --One on ni_vp. One on ni_dvp if there is more path, or we didn't come through the
560 * --If we find a symlink, returns with iocounts on both ni_vp and ni_dvp.
563 * --If we are done, returns an iocount on ni_vp, and possibly on ni_dvp depending on nameidata flags.
564 * --In the event of an error, may return with ni_dvp NULL'ed out (in which case, iocount
606 lookup_consider_update_cache(ndp->ni_dvp, dp, cnp, nc_generation);
677 vnode_put(ndp->ni_dvp);
678 ndp->ni_dvp = NULLVP;
701 * on both dp and ni_dvp, but for some reason
705 if ( (vnode_get(ndp->ni_dvp)) ) {
709 ndp->ni_startdir = ndp->ni_dvp;
711 if (!wantparent && ndp->ni_dvp) {
712 vnode_put(ndp->ni_dvp);
713 ndp->ni_dvp = NULLVP;
750 * Comes in iocount on ni_vp. May overwrite ni_dvp, but doesn't interpret incoming value.
783 ndp->ni_dvp = dp;
830 * directory vnode returned in ni_dvp, unlocked unless LOCKPARENT set
836 * if LOCKPARENT set, return locked parent in ni_dvp
837 * if WANTPARENT set, return unlocked parent in ni_dvp
923 dp = ndp->ni_dvp;
955 ndp->ni_dvp = dp;
989 ndp->ni_dvp = dp;
1051 ndp->ni_dvp = dp;
1068 * referenced directory vnode in ndp->ni_dvp.
1071 if ( (vnode_get(ndp->ni_dvp)) ) {
1075 ndp->ni_startdir = ndp->ni_dvp;
1078 vnode_put(ndp->ni_dvp);
1081 kdebug_lookup(ndp->ni_dvp, cnp);
1116 unlock_fsnode(ndp->ni_dvp, NULL);
1119 if (ndp->ni_dvp)
1120 vnode_put(ndp->ni_dvp);
1133 unlock_fsnode(ndp->ni_dvp, NULL);
1279 * Takes ni_vp and ni_dvp non-NULL. Returns with *new_dp set to the location
1298 unlock_fsnode(ndp->ni_dvp, NULL);
1367 dp = ndp->ni_dvp;
1373 vnode_put(ndp->ni_dvp); /* ALWAYS have a dvp for a symlink */
1376 ndp->ni_dvp = NULLVP;
1472 * (possibly locked) directory inode in ndp->ni_dvp.
1512 unlock_fsnode(ndp->ni_dvp, NULL);