Lines Matching refs:vp
2426 struct vnode *vp = imgp->ip_vp;
2433 if (!vnode_isreg(vp))
2444 if ((error = vnode_getattr(vp, vap, imgp->ip_vfs_context)) != 0)
2463 if ((vp->v_mount->mnt_flag & MNT_NOSUID) || (p->p_lflag & P_LTRACED)) {
2471 error = mac_vnode_check_exec(imgp->ip_vfs_context, vp, imgp);
2481 if ((error = vnode_authorize(vp, NULL, action, imgp->ip_vfs_context)) != 0)
2486 vnode_lock(vp);
2487 if (vp->v_writecount) {
2488 panic("going to return ETXTBSY %x", vp);
2489 vnode_unlock(vp);
2492 vnode_unlock(vp);
3087 vnode_t vp;
3092 vp = imgp->ip_vp;
3095 if (vp == NULLVP)
3096 panic("exec_resettextvp: expected valid vp");
3098 ret = vnode_ref(vp);
3101 p->p_textvp = vp;