to list all the devices in freebsd &definition analyse

kylin fierykylin at gmail.com
Mon Nov 28 04:36:53 GMT 2005


On 11/28/05, M. Warner Losh <imp at bsdimp.com> wrote:
> In message: <87ab37ab0511261855lfc5d062h7d394f25bcd00ec0 at mail.gmail.com>
>            kylin <fierykylin at gmail.com> writes:
> : i can use pciconf in freebsd to list the pci device ,but how to list
> : the device tree in freeebsd?
>
> devinfo -v
devinfo is different with pciconf
devinfo depends on the sysctl mechanism while pciconf ioctl the
/dev/pci who will directly read the pci configuration space

> devclass is the information about all instances of the device.
> device_t is an instance of the device.  The only difference between a
> bus and a device is that a bus has children.
>
> Warner
>
but pcib and cbb still have pci or cardbus as there children ,and pcib
and cbb is bridge rather than bus :(
i am puzzle with the definition:(

--
we who r about to die,salute u!


More information about the freebsd-hackers mailing list