From owner-freebsd-arch@FreeBSD.ORG Thu Feb 26 11:09:27 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6CF2216A4CE; Thu, 26 Feb 2004 11:09:27 -0800 (PST) Received: from smtp.des.no (flood.des.no [217.116.83.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 29CC043D2D; Thu, 26 Feb 2004 11:09:27 -0800 (PST) (envelope-from des@des.no) Received: by smtp.des.no (Pony Express, from userid 666) id 497355309; Thu, 26 Feb 2004 20:09:26 +0100 (CET) Received: from dwp.des.no (des.no [80.203.228.37]) by smtp.des.no (Pony Express) with ESMTP id 3A84D5308; Thu, 26 Feb 2004 20:09:16 +0100 (CET) Received: by dwp.des.no (Postfix, from userid 2602) id CA10F33C71; Thu, 26 Feb 2004 20:09:15 +0100 (CET) To: Robert Watson References: From: des@des.no (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=) Date: Thu, 26 Feb 2004 20:09:15 +0100 In-Reply-To: (Robert Watson's message of "Thu, 26 Feb 2004 13:57:38 -0500 (EST)") Message-ID: User-Agent: Gnus/5.090024 (Oort Gnus v0.24) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on flood.des.no X-Spam-Level: X-Spam-Status: No, hits=0.0 required=5.0 tests=AWL autolearn=no version=2.63 cc: arch@freebsd.org Subject: Re: per-device sysctls X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Feb 2004 19:09:27 -0000 Robert Watson writes: > Having a unified and managed namespace for device sysctls sounds like a > generally good idea to me, as more and more devices require some of > another tweaking. Have you had any thoughts on how to name sysctls and > kernel environment variables on a per-driver basis, rather than a > per-device basis? I.e., fxp and some other device drivers have > configuration settings that affect all instances of devices, rather than > specific instances. It should be easy to add a per-devclass_t or per-driver_t sysctl context and tree. These things are disgustingly easy to create; the only hard part is figuring out when and where to create them. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no