Lines Matching refs:vp
70 vnode_t *vp; in chdir() local
75 if (error = lookupname(fname, UIO_USERSPACE, FOLLOW, NULLVPP, &vp)) { in chdir()
81 error = chdirec(vp, 0, 1); in chdir()
96 vnode_t *vp; in fchdir() local
102 vp = fp->f_vnode; in fchdir()
103 VN_HOLD(vp); in fchdir()
105 error = chdirec(vp, 0, 0); in fchdir()
117 vnode_t *vp; in chroot() local
122 if (error = lookupname(fname, UIO_USERSPACE, FOLLOW, NULLVPP, &vp)) { in chroot()
128 error = chdirec(vp, 1, 1); in chroot()
146 vnode_t *vp; in fchroot() local
152 vp = fp->f_vnode; in fchroot()
153 VN_HOLD(vp); in fchroot()
155 error = chdirec(vp, 1, 0); in fchroot()
162 chdirec(vnode_t *vp, int ischroot, int do_traverse) in chdirec() argument
171 if (vp->v_type != VDIR) { in chdirec()
175 if (error = VOP_ACCESS(vp, VEXEC, 0, CRED(), NULL)) in chdirec()
183 if (vn_mountedvfs(vp) != NULL && do_traverse) { in chdirec()
184 if (error = traverse(&vp)) in chdirec()
200 if (error = VOP_GETATTR(vp, &tattr, 0, CRED(), NULL)) in chdirec()
219 audit_chdirec(vp, vpp); in chdirec()
227 if (!ischroot && *vpp != NULL && vp != NULL && VN_CMP(*vpp, vp)) in chdirec()
231 *vpp = vp; in chdirec()
243 VN_RELE(vp); in chdirec()