From owner-freebsd-arch@FreeBSD.ORG Thu Feb 26 11:51:11 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 8377116A4CE for ; Thu, 26 Feb 2004 11:51:11 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id E426E43D1F for ; Thu, 26 Feb 2004 11:51:10 -0800 (PST) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.11/8.12.11) with ESMTP id i1QJp9Ds002469; Thu, 26 Feb 2004 20:51:09 +0100 (CET) (envelope-from phk@phk.freebsd.dk) To: des@des.no (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=) From: "Poul-Henning Kamp" In-Reply-To: Your message of "Thu, 26 Feb 2004 19:10:37 +0100." Date: Thu, 26 Feb 2004 20:51:09 +0100 Message-ID: <2468.1077825069@critter.freebsd.dk> 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:51:11 -0000 In message , Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?= writes: >BTW, the dev tree on my laptop looks like this: > >des@des ~% sysctl dev >dev.nexus0.npx0.%class: npx >dev.nexus0.npx0.%desc: math processor >dev.nexus0.npx0.%driver: npx >dev.nexus0.acpi0.acpi_timer0.%class: acpi_timer >dev.nexus0.acpi0.acpi_timer0.%desc: 24-bit timer at 3.579545MHz >dev.nexus0.acpi0.acpi_timer0.%driver: acpi_timer Just for the record: Having based this on newbus it only documents hardware-anchored device drivers. I don't know if this is going to be a limitation we will have to address or not, but I think you should reserve the toplevel name "pseudo" or "sw" or similar as a placeholder for non-hardware device drivers, just in case. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.