From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 24 12:56:43 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C317516A420 for ; Wed, 24 Aug 2005 12:56:43 +0000 (GMT) (envelope-from victor.cruceru@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 05D3B43D6D for ; Wed, 24 Aug 2005 12:56:38 +0000 (GMT) (envelope-from victor.cruceru@gmail.com) Received: by wproxy.gmail.com with SMTP id i4so97560wra for ; Wed, 24 Aug 2005 05:56:25 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=hCPELNGmMVF742EODrCdLLe5wHAdJq07cl9muv9HKGwGoQWDYmcVbO3Aa9+ZUX4U50QDX6pbV18dRm/nS0TFDxP44RcH90nta6e1Qi0vVY64jZaHB35SQcVX/60OYQkh3NpcO+xf611BzY1TX9rOnSLHOYzoMzydsOo3byK1dbY= Received: by 10.54.44.48 with SMTP id r48mr576447wrr; Wed, 24 Aug 2005 05:56:25 -0700 (PDT) Received: by 10.54.91.20 with HTTP; Wed, 24 Aug 2005 05:56:25 -0700 (PDT) Message-ID: <4940255050824055612a8244a@mail.gmail.com> Date: Wed, 24 Aug 2005 15:56:25 +0300 From: victor cruceru To: kylin In-Reply-To: <87ab37ab05082405065fb8252@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <87ab37ab05082405065fb8252@mail.gmail.com> Cc: "freebsd-hackers@freebsd.org" Subject: Re: Enumerating devices and hardware conf from userland X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: soc-victor@freebsd.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Aug 2005 12:56:43 -0000 See: man 3 devinfo and man 3 devstat Hope this helps, victor cruceru On 8/24/05, kylin 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" >