Home | History | Annotate | Line # | Download | only in gdbscripts
vdump revision 1.2.102.1
      1 #	$NetBSD: vdump,v 1.2.102.1 2006/11/18 21:39:21 ad Exp $
      2 
      3 #	@(#)vdump	8.1 (Berkeley) 6/10/93
      4 #
      5 # dump the vnode list
      6 
      7 define dumpvnodes
      8 
      9 	set $vp = (struct vnode *)$arg0
     10 	while ($vp)
     11 		printf "vnode=0x%x freef=0x%x mountf=0x%x usecount=%d\n", $vp, $vp->v_freelist.tqe_next, $vp->v_mntvnodes.tqe_next, $vp->v_uobj.uo_refs
     12 		set $vp = (struct vnode *)$vp->v_freelist.tqe_next
     13 	end
     14 end
     15