Lines Matching defs:vp
259 struct vnode *vp;
275 if ((error = fgetvp(td, fd, CAP_MASK_VALID, &vp)) != 0)
278 if (vp->v_type != VCHR && vp->v_type != VBLK) {
284 vn_lock(vp, LK_EXCLUSIVE | LK_RETRY);
285 error = mac_vnode_check_revoke(td->td_ucred, vp);
286 VOP_UNLOCK(vp, 0);
291 if ((error = VOP_GETATTR(vp, &vattr, td->td_ucred)) != 0)
298 if ((error = vn_start_write(vp, &mp, V_WAIT | PCATCH)) != 0)
300 if (vcount(vp) > 1)
301 VOP_REVOKE(vp, REVOKEALL);
304 vrele(vp);
317 struct vnode *vp;
330 vp = fp->f_vnode;
332 if (fp->f_type != DTYPE_VNODE || vp->v_type == VFIFO) {
337 if ((error = VOP_GETATTR(vp, &vattr, td->td_ucred)) != 0) {