The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/gdbscripts/vchain

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 #       $NetBSD: vchain,v 1.2 1997/02/12 23:35:10 gwr Exp $
    2 
    3 #       @(#)vchain      8.1 (Berkeley) 6/10/93
    4 #
    5 # Given a vnode, follow its mount pointers
    6 define vchain
    7 
    8         set $num = 0
    9 
   10         set $vp=(struct vnode *)$arg0
   11         while ($vp)
   12                 printf "vp: 0x%x freef: 0x%x usecount: %d flags: 0x%x\n", $vp, $vp->v_freef, $vp->v_usecount, $vp->v_flag
   13                 set $num++
   14                 set $vp = $vp->v_mountf
   15         end
   16         printf "Number of vnodes: %d\n", $num
   17 end
   18 
   19 define vprint
   20         set $vp=(struct vnode *)$arg0
   21         set $ip=(struct inode *)$vp->v_data
   22 end
   23 
   24 define vall
   25         set $mp=rootfs
   26         while ($mp)
   27                 vchain $mp->mnt_mounth
   28                 set $mp=$mp->mnt_next
   29         end
   30 end

Cache object: 3d98bd9b6727f8d8d0804ad08db2e613


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.