Lines Matching refs:vp
152 struct vnode **vp);
423 ktr_freeproc(struct proc *p, struct ucred **uc, struct vnode **vp)
431 if (vp != NULL)
432 *vp = p->p_tracevp;
492 ktrprocexec(struct proc *p, struct ucred **uc, struct vnode **vp)
497 ktr_freeproc(p, uc, vp);
511 struct vnode *vp;
526 ktr_freeproc(p, &cred, &vp);
529 if (vp != NULL)
530 vrele(vp);
887 struct vnode *vp = NULL;
917 vp = nd.ni_vp;
918 VOP_UNLOCK(vp, 0);
919 if (vp->v_type != VREG) {
920 (void) vn_close(vp, FREAD|FWRITE, td->td_ucred, td);
935 if (p->p_tracevp == vp) {
950 vrele(vp);
983 ret |= ktrsetchildren(td, p, ops, facs, vp);
985 ret |= ktrops(td, p, ops, facs, vp);
1008 ret |= ktrsetchildren(td, p, ops, facs, vp);
1010 ret |= ktrops(td, p, ops, facs, vp);
1016 if (vp != NULL)
1017 (void) vn_close(vp, FWRITE, td->td_ucred, td);
1061 ktrops(struct thread *td, struct proc *p, int ops, int facs, struct vnode *vp)
1078 if (p->p_tracevp != vp) {
1083 VREF(vp);
1084 p->p_tracevp = vp;
1113 struct vnode *vp)
1122 ret |= ktrops(td, p, ops, facs, vp);
1148 struct vnode *vp;
1165 vp = td->td_proc->p_tracevp;
1169 * If vp is NULL, the vp has been cleared out from under this
1173 if (vp == NULL) {
1178 VREF(vp);
1212 vn_start_write(vp, &mp, V_WAIT);
1213 vn_lock(vp, LK_EXCLUSIVE | LK_RETRY);
1215 error = mac_vnode_check_write(cred, NOCRED, vp);
1218 error = VOP_WRITE(vp, &auio, IO_UNIT | IO_APPEND, cred);
1219 VOP_UNLOCK(vp, 0);
1223 vrele(vp);
1234 * by the loop at the end after our last use of vp.
1250 if (p->p_tracevp == vp) {
1265 vrele(vp);