Lines Matching full:vp

55 #define	NULL_NHASH(vp) (&null_node_hashtbl[vfs_hash_index(vp) & null_hash_mask])  argument
97 struct vnode *vp; in null_hashget_locked() local
117 vp = NULLTOV(a); in null_hashget_locked()
118 vref(vp); in null_hashget_locked()
119 return (vp); in null_hashget_locked()
129 struct vnode *vp; in null_hashget() local
136 vp = null_hashget_locked(mp, lowervp); in null_hashget()
139 return (vp); in null_hashget()
166 null_destroy_proto(struct vnode *vp, void *xp) in null_destroy_proto() argument
169 lockmgr(&vp->v_lock, LK_EXCLUSIVE, NULL); in null_destroy_proto()
170 VI_LOCK(vp); in null_destroy_proto()
171 vp->v_data = NULL; in null_destroy_proto()
172 vp->v_vnlock = &vp->v_lock; in null_destroy_proto()
173 vp->v_op = &dead_vnodeops; in null_destroy_proto()
174 VI_UNLOCK(vp); in null_destroy_proto()
175 vgone(vp); in null_destroy_proto()
176 vput(vp); in null_destroy_proto()
182 * Vp is the alias vnode, lowervp is the lower vnode.
192 struct vnode *vp; in null_nodeget() local
213 error = getnewvnode("nullfs", mp, &null_vnodeops, &vp); in null_nodeget()
220 VNPASS(vp->v_object == NULL, vp); in null_nodeget()
221 VNPASS((vn_irflag_read(vp) & VIRF_PGREAD) == 0, vp); in null_nodeget()
224 xp->null_vnode = vp; in null_nodeget()
227 vp->v_type = lowervp->v_type; in null_nodeget()
228 vp->v_data = xp; in null_nodeget()
229 vp->v_vnlock = lowervp->v_vnlock; in null_nodeget()
234 null_destroy_proto(vp, xp); in null_nodeget()
245 vp->v_object = lowervp->v_object; in null_nodeget()
246 vn_irflag_set(vp, VIRF_PGREAD); in null_nodeget()
249 vp->v_vflag |= VV_ROOT; in null_nodeget()
251 error = insmntque1(vp, mp); in null_nodeget()
255 vp->v_object = NULL; in null_nodeget()
256 null_destroy_proto(vp, xp); in null_nodeget()
261 vn_set_state(vp, VSTATE_CONSTRUCTED); in null_nodeget()
263 *vpp = vp; in null_nodeget()
283 null_checkvp(struct vnode *vp, char *fil, int lno) in null_checkvp() argument
285 struct null_node *a = VTONULL(vp); in null_checkvp()
292 if (vp->v_op != null_vnodeop_p) { in null_checkvp()
299 panic("null_checkvp %p", vp); in null_checkvp()
303 panic ("null with unref'ed lowervp, vp %p lvp %p", in null_checkvp()
304 vp, a->null_lowervp); in null_checkvp()