Date: Mon, 3 May 2004 01:27:12 +0200 From: Thierry DELHAISE <befree_fr@mac.com> To: Hackers FreeBSD <freebsd-hackers@freebsd.org> Subject: Enumerating devices and hardware conf from userland Message-ID: <3D7AE33C-9C90-11D8-AB12-000A95AFBEFA@mac.com>
next in thread | raw e-mail | index | archive | help
Hi all, Sorry first if my question seems stupid : I'm new in the FreeBSD Kernel design and so don't know all interfaces of the kernel in user land. I'm developping a tool running in userland (root) (a command line tools) for enumerating all devices present on the machine : This tool must scan all hardware buses : pci, but usb, firewire, ide, etc.... and retreive devices states : configure, not configured, handle by a driver, not handle by a driver, witch modules is the driver. And I want to have all devices present inside a machine. In some recent Kernel, there is a way from userland, to take a handle from the root hardware tree, enumeratiing first buses, and under buses, witch device are connect to those buses. This is is what I am looking for. How to do this under FreeBSD ? THX in advance for your help, advice, comment. Thierry
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D7AE33C-9C90-11D8-AB12-000A95AFBEFA>