Lines Matching refs:ndp
140 static int change_dir(struct nameidata *ndp, vfs_context_t ctx);
2039 change_dir(struct nameidata *ndp, vfs_context_t ctx)
2044 if ((error = namei(ndp)))
2046 nameidone(ndp);
2047 vp = ndp->ni_vp;
2088 open1(vfs_context_t ctx, struct nameidata *ndp, int uflags, struct vnode_attr *vap, register_t *retval)
2138 if ((error = vn_open_auth(ndp, &flags, vap))) {
2167 vp = ndp->ni_vp;
2929 unlink1(vfs_context_t ctx, struct nameidata *ndp, int nodelbusy)
2943 ndp->ni_cnd.cn_flags |= CN_ALLOWRSRCFORK;
2946 ndp->ni_cnd.cn_flags |= LOCKPARENT;
2947 cnp = &ndp->ni_cnd;
2949 error = namei(ndp);
2952 dvp = ndp->ni_dvp;
2953 vp = ndp->ni_vp;
2986 error = vnode_authorize(vp, ndp->ni_dvp, KAUTH_VNODE_DELETE, ctx);
3010 if (ndp->ni_cnd.cn_flags & CN_WANTSRSRCFORK)
3014 error = VNOP_REMOVE(dvp, vp, &ndp->ni_cnd, flags, ctx);
3061 if ((vnode_isnamedstream(ndp->ni_vp)) &&
3062 (ndp->ni_vp->v_parent != NULLVP) &&
3063 (vnode_isshadow(ndp->ni_vp))) {
3064 vnode_recycle(ndp->ni_vp);
3068 nameidone(ndp);
3590 stat2(vfs_context_t ctx, struct nameidata *ndp, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size, int isstat64)
3605 ndp->ni_cnd.cn_flags |= CN_ALLOWRSRCFORK;
3607 error = namei(ndp);
3621 if (vnode_isnamedstream(ndp->ni_vp) &&
3622 (ndp->ni_vp->v_parent != NULLVP) &&
3623 (vnode_isshadow(ndp->ni_vp))) {
3625 vnode_ref (ndp->ni_vp);
3629 error = vn_stat(ndp->ni_vp, statptr, (xsecurity != USER_ADDR_NULL ? &fsec : NULL), isstat64, ctx);
3633 vnode_rele (ndp->ni_vp);
3637 vnode_put(ndp->ni_vp);
3638 nameidone(ndp);