70ec436e39
to "struct vnode_impl" and rename to "vi_lrulisthd" and "vi_lrulist". No functional change intended. Welcome to 7.99.48
20 lines
480 B
Plaintext
20 lines
480 B
Plaintext
# $NetBSD: vdump,v 1.6 2016/12/14 15:48:55 hannken Exp $
|
|
|
|
# @(#)vdump 8.1 (Berkeley) 6/10/93
|
|
#
|
|
|
|
define dumpvnodes
|
|
|
|
set $vp = (struct vnode *)$arg0
|
|
set $vi = (struct vnode_impl *)$arg0
|
|
while ($vp)
|
|
printf "vnode=0x%x lruf=0x%x mountf=0x%x usecount=%d\n", $vp, $vi->vi_lrulist.tqe_next, $vp->v_mntvnodes.tqe_next, $vp->v_uobj.uo_refs
|
|
set $vi = (struct vnode_impl *)$vi->vi_lrulist.tqe_next
|
|
set $vp = (struct vnode *)$vi
|
|
end
|
|
end
|
|
|
|
document dumpvnodes
|
|
dump the vnode list
|
|
end
|