From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 28 16:05:07 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 7260E16A41F for ; Mon, 28 Nov 2005 16:05:07 +0000 (GMT) (envelope-from fierykylin@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7BA6543D60 for ; Mon, 28 Nov 2005 16:04:49 +0000 (GMT) (envelope-from fierykylin@gmail.com) Received: by xproxy.gmail.com with SMTP id t12so1000114wxc for ; Mon, 28 Nov 2005 08:04:43 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=r02wtbWPqC5erLbHa6Ha4m9VCSqEU+jQqBAe9IY8icy4noDDDylwy5udDbMSzCQw82BWRzCq+LNZ/Eo/665pYr/qz7wjMrgCn+1HfbYVROwOxUlewow/lrp0ozLPZoBnaFRLKMTv7Qqd+ZuTHBPA0X4geNRZ60uKalcnEzR7PiA= Received: by 10.70.52.19 with SMTP id z19mr647852wxz; Mon, 28 Nov 2005 08:04:43 -0800 (PST) Received: by 10.70.18.16 with HTTP; Mon, 28 Nov 2005 08:04:43 -0800 (PST) Message-ID: <87ab37ab0511280804q30c84a51te515facc30e81ff4@mail.gmail.com> Date: Tue, 29 Nov 2005 00:04:43 +0800 From: kylin To: =?ISO-8859-1?Q?Dag-Erling_Sm=F8rgrav?= In-Reply-To: <868xv8by8x.fsf@xps.des.no> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <87ab37ab0511261855lfc5d062h7d394f25bcd00ec0@mail.gmail.com> <20051127.164001.61158282.imp@bsdimp.com> <87ab37ab0511272036t60b22769sff7a201d4d3cf8f9@mail.gmail.com> <868xv8by8x.fsf@xps.des.no> 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 16:05:07 -0000 my god ,mercy me On 11/28/05, Dag-Erling Sm=F8rgrav wrote: > 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. i agree:) > > > 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. no .device_get_parent of a pci bus we get pcib > > we who r about to die,salute u! > > please learn to spell. come from the "gladiator":In ancient rome, the glorious gladiator show their respect to the audience whit the words:we who are about to die salute you but thank u for your advice all the same :) -- we who r about to die,salute u!