Home | History | Annotate | Line # | Download | only in gdbscripts
devs revision 1.2.2.2
      1  1.2.2.2  christos #	$NetBSD: devs,v 1.2.2.2 2019/06/10 22:09:02 christos Exp $
      2  1.2.2.2  christos 
      3  1.2.2.2  christos define devs
      4  1.2.2.2  christos 	set $i = 0
      5  1.2.2.2  christos 
      6  1.2.2.2  christos 	while ($i < 2)
      7  1.2.2.2  christos 		if ($i == 0)
      8  1.2.2.2  christos 			set $d = alldevs.tqh_first
      9  1.2.2.2  christos 		end
     10  1.2.2.2  christos 		if ($d)
     11  1.2.2.2  christos 			printf "        device_t            parent           private  dv_xname\n"
     12  1.2.2.2  christos 		end
     13  1.2.2.2  christos 		while ($d)
     14  1.2.2.2  christos 			printf "%16lx  %16lx  %16lx  %s\n", \
     15  1.2.2.2  christos 				$d, $d->dv_parent, $d->dv_private, $d->dv_xname
     16  1.2.2.2  christos 			set $d = $d->dv_list.tqe_next
     17  1.2.2.2  christos 		end
     18  1.2.2.2  christos 		set $i++
     19  1.2.2.2  christos 	end
     20  1.2.2.2  christos end
     21  1.2.2.2  christos document devs
     22  1.2.2.2  christos dump a list of all devices known on the system with their name,
     23  1.2.2.2  christos and these pointers: this device, parent device, device private.
     24  1.2.2.2  christos end
     25