Date: Sun, 27 Nov 2005 16:40:01 -0700 (MST) From: "M. Warner Losh" <imp@bsdimp.com> To: fierykylin@gmail.com Cc: freebsd-hackers@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG Subject: Re: to list all the devices in freebsd &definition analyse Message-ID: <20051127.164001.61158282.imp@bsdimp.com> In-Reply-To: <87ab37ab0511261855lfc5d062h7d394f25bcd00ec0@mail.gmail.com> References: <87ab37ab0511261855lfc5d062h7d394f25bcd00ec0@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In message: <87ab37ab0511261855lfc5d062h7d394f25bcd00ec0@mail.gmail.com>
kylin <fierykylin@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
: i got some anornymous definition on devclass driver and device that
: differ from the current man page
: i think they seems reasonable but how can devclass Represents a bus
: or leaf device driver while driver still Represents a bus or
: leaf-level end-device driver ?
: and device is just a instance of bus or (leaf) end-device.??
: is it oop? can the disigner of the arch show us a word?:)
:
: devclass
: Represents a bus or leaf device driver, e.g. pci_devclass (PCI bus),
: ahc_devclass (Adaptec SCSI host-bus adapter). It contains a list of
: drivers that belong to it. At run-time it also has a list populated by
: device instances of this class indexed by unit numbers.
: driver
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051127.164001.61158282.imp>
