From owner-freebsd-arch@FreeBSD.ORG Wed Feb 20 12:42:49 2008 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CBD0E16A406 for ; Wed, 20 Feb 2008 12:42:49 +0000 (UTC) (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 891DE13C45A for ; Wed, 20 Feb 2008 12:42:49 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id 50D512084 for ; Wed, 20 Feb 2008 13:42:38 +0100 (CET) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: -0.3/3.0 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on tim.des.no Received: from ds4.des.no (des.no [80.203.243.180]) by smtp.des.no (Postfix) with ESMTP id 3775F207F for ; Wed, 20 Feb 2008 13:42:38 +0100 (CET) Received: by ds4.des.no (Postfix, from userid 1001) id 0A9A284488; Wed, 20 Feb 2008 13:42:38 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: arch@freebsd.org References: <86odacc04t.fsf@ds4.des.no> <20080219233217.GS27248@funkthat.com> Date: Wed, 20 Feb 2008 13:42:37 +0100 In-Reply-To: <20080219233217.GS27248@funkthat.com> (John-Mark Gurney's message of "Tue\, 19 Feb 2008 15\:32\:17 -0800") Message-ID: <86skznyf2a.fsf@ds4.des.no> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.1 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: Subject: Re: dev.* analogue for interfaces X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Feb 2008 12:42:49 -0000 John-Mark Gurney writes: > My concern is that slowly adding them for each interface type could > create some conflicts in both naming and location... each interface type? this would be done in if_attach() / if_detach(), everything is taken care of centrally for all interfaces. > Are the interface sysctl nodes going to be the same/mirrored for hardware > devices? Does dev.msk.0 get duplicated in the interface area? No, there's if.* for interface stuff and dev.* for hardware stuff. Some nodes might move from one tree to the other, but I suspect that most won't. Like I said, some interfaces already do this "manually" under net.*. > or does it > have to decide to put ethernet interface related items in the if sysctl > node, and other hardware related (hi/low water marks for DMA) in the > seperate tree? How does someone know where to look if they are in > different locations for the same device? Not all interfaces are devices. That is the whole point... > We should probably create a newbus tree node off the nexus for psuedo > devices that are not backed by hardware, and put all of these style > devices under them... Uh, no. Devices that aren't backed by hardware are still devices, they still have a device_t, and they still have dev.* nodes; nexus is not backed by hardware, for instance, it's just a convenient top-level device that serves as parent for all other devices. Basically, there is a dev.* node for every device_t in the system. I want to have an if.* node for every struct ifnet. > This will help enforce non-conflicting names, I don't see why you're so hung up on conflicting names. It's a non- issue. Every interface has a unique name. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no