Lines Matching refs:vp

44 static int	door_close(struct vnode *vp, int flag, int count,
46 static int door_getattr(struct vnode *vp, struct vattr *vap,
48 static void door_inactive(struct vnode *vp, struct cred *cr,
50 static int door_access(struct vnode *vp, int mode, int flags,
52 static int door_realvp(vnode_t *vp, vnode_t **vpp, caller_context_t *ct);
104 door_close(struct vnode *vp, int flag, int count, offset_t offset, in door_close() argument
107 door_node_t *dp = VTOD(vp); in door_close()
126 if (count == 2 && vp->v_count == 1 && in door_close()
143 door_getattr(struct vnode *vp, struct vattr *vap, int flags, struct cred *cr, in door_getattr() argument
150 vap->va_type = vp->v_type; /* vnode type (for create) */ in door_getattr()
156 vap->va_nlink = vp->v_count; /* number of references to file */ in door_getattr()
171 door_inactive(struct vnode *vp, struct cred *cr, caller_context_t *ct) in door_inactive() argument
173 door_node_t *dp = VTOD(vp); in door_inactive()
175 mutex_enter(&vp->v_lock); in door_inactive()
181 ASSERT(vp->v_count == 1); in door_inactive()
183 VN_RELE_LOCKED(vp); in door_inactive()
184 mutex_exit(&vp->v_lock); in door_inactive()
187 mutex_exit(&vp->v_lock); in door_inactive()
196 vn_invalid(vp); in door_inactive()
197 vn_free(vp); in door_inactive()
209 vnode_t *vp = DTOV(dp); in door_bind_thread() local
211 mutex_enter(&vp->v_lock); in door_bind_thread()
213 ASSERT(dp->door_bound_threads > 0 && vp->v_count > 0); in door_bind_thread()
214 mutex_exit(&vp->v_lock); in door_bind_thread()
220 vnode_t *vp = DTOV(dp); in door_unbind_thread() local
223 mutex_enter(&vp->v_lock); in door_unbind_thread()
225 if (--dp->door_bound_threads == 0 && vp->v_count == 0) { in door_unbind_thread()
227 VN_HOLD_LOCKED(vp); in door_unbind_thread()
230 mutex_exit(&vp->v_lock); in door_unbind_thread()
233 door_inactive(vp, NULL, NULL); in door_unbind_thread()
238 door_access(struct vnode *vp, int mode, int flags, struct cred *cr, in door_access() argument
246 door_realvp(vnode_t *vp, vnode_t **vpp, caller_context_t *ct) in door_realvp() argument
248 *vpp = vp; in door_realvp()