2009-11-18 21:02:00 +03:00
|
|
|
# $NetBSD: vdump,v 1.5 2009/11/18 18:02:00 eeh Exp $
|
1997-02-13 02:35:06 +03:00
|
|
|
|
1997-02-13 01:09:45 +03:00
|
|
|
# @(#)vdump 8.1 (Berkeley) 6/10/93
|
|
|
|
#
|
|
|
|
|
|
|
|
define dumpvnodes
|
|
|
|
|
|
|
|
set $vp = (struct vnode *)$arg0
|
|
|
|
while ($vp)
|
2006-11-04 23:33:17 +03:00
|
|
|
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
|
2006-09-29 19:43:06 +04:00
|
|
|
set $vp = (struct vnode *)$vp->v_freelist.tqe_next
|
1997-02-13 01:09:45 +03:00
|
|
|
end
|
|
|
|
end
|
2009-11-18 21:02:00 +03:00
|
|
|
|
|
|
|
document dumpvnodes
|
|
|
|
dump the vnode list
|
|
|
|
end
|