From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 28 15:14:49 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 9DEC516A41F for ; Mon, 28 Nov 2005 15:14:49 +0000 (GMT) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8ABED43D7B for ; Mon, 28 Nov 2005 15:14:47 +0000 (GMT) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id 9D7972085; Mon, 28 Nov 2005 16:14:38 +0100 (CET) X-Spam-Tests: AWL,BAYES_00,FORGED_RCVD_HELO X-Spam-Learn: ham X-Spam-Score: -3.3/3.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on tim.des.no Received: from xps.des.no (des.no [80.203.243.180]) by tim.des.no (Postfix) with ESMTP id 8E0E42083; Mon, 28 Nov 2005 16:14:38 +0100 (CET) Received: by xps.des.no (Postfix, from userid 1001) id 78EB133C1D; Mon, 28 Nov 2005 16:14:38 +0100 (CET) To: kylin References: <87ab37ab0511261855lfc5d062h7d394f25bcd00ec0@mail.gmail.com> <20051127.164001.61158282.imp@bsdimp.com> <87ab37ab0511272036t60b22769sff7a201d4d3cf8f9@mail.gmail.com> From: des@des.no (=?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?=) Date: Mon, 28 Nov 2005 16:14:38 +0100 In-Reply-To: <87ab37ab0511272036t60b22769sff7a201d4d3cf8f9@mail.gmail.com> (fierykylin@gmail.com's message of "Mon, 28 Nov 2005 12:36:50 +0800") Message-ID: <868xv8by8x.fsf@xps.des.no> User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org Subject: Re: to list all the devices in freebsd &definition analyse X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Nov 2005 15:14:49 -0000 kylin writes: > M. Warner Losh writes: > > 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 there is more in life than pci. > > 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. > 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:( as far as the kernel is concerned, any devices that other devices attach to is a bus. > we who r about to die,salute u! please learn to spell. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no