1# $NetBSD: vdump,v 1.2 1997/02/12 23:35:11 gwr Exp $ 2 3# @(#)vdump 8.1 (Berkeley) 6/10/93 4# 5# dump the vnode list 6 7define 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_freef, $vp->v_mountf, $vp->v_usecount 12 set $vp = (struct vnode *)$vp->v_freef 13 end 14end 15