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/pgrpdump

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: pgrpdump,v 1.2 1997/02/12 23:35:08 gwr Exp $
    2 
    3 #       @(#)pgrpdump    8.1 (Berkeley) 6/10/93
    4 
    5 define allpgrps
    6         set $lim = pidhashmask + 1
    7         set $i = 0
    8         while ($i < $lim)
    9                 if (pgrphash[$i])
   10                         printf "--- pgrphash[%d] ---\n", $i
   11                         pgrpchain pgrphash[$i]
   12                 end
   13                 set $i++
   14         end
   15 end
   16 
   17 define pgrpchain
   18         set $pgrp = (struct pgrp *)$arg0
   19         while ($pgrp)
   20                 print *$pgrp
   21                 set $pgrp = $pgrp->pg_hforw
   22         end
   23 end

Cache object: 2d28eef0ef6deb9ffd966caf9b8aec97


[ 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.