Date: Wed, 24 Aug 2005 15:56:25 +0300 From: victor cruceru <victor.cruceru@gmail.com> To: kylin <fierykylin@gmail.com> Cc: "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org> Subject: Re: Enumerating devices and hardware conf from userland Message-ID: <4940255050824055612a8244a@mail.gmail.com> In-Reply-To: <87ab37ab05082405065fb8252@mail.gmail.com> References: <87ab37ab05082405065fb8252@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
See: man 3 devinfo and man 3 devstat Hope this helps, victor cruceru On 8/24/05, kylin <fierykylin@gmail.com> wrote: > >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. > do u just need the read function on the sysctl or do something from > the deep end into kernel ? > does http://www.magnicomp.com/cgi-bin/mcdownload.cgi really help? > > > -- > we who r about to die,salute u! > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4940255050824055612a8244a>