NetBSD/sys/gdbscripts/vdump

15 lines
380 B
Plaintext

# $NetBSD: vdump,v 1.3 2006/09/29 15:43:06 pooka Exp $
# @(#)vdump 8.1 (Berkeley) 6/10/93
#
# dump the vnode list
define dumpvnodes
set $vp = (struct vnode *)$arg0
while ($vp)
printf "vnode=0x%x freef=0x%x mountf=0x%x usecount=%d\n", $vp, $vp->v_freelist.tqe_next, $vp->v_mntvnodes.le_next, $vp->v_uobj.uo_refs
set $vp = (struct vnode *)$vp->v_freelist.tqe_next
end
end