Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Feb 2004 13:07:49 -0700 (MST)
From:      "M. Warner Losh" <imp@bsdimp.com>
To:        phk@phk.freebsd.dk
Cc:        arch@freebsd.org
Subject:   Re: per-device sysctls 
Message-ID:  <20040226.130749.96599763.imp@bsdimp.com>
In-Reply-To: <20040226.130330.54448406.imp@bsdimp.com>
References:  <xzpbrnllnj6.fsf@dwp.des.no> <2468.1077825069@critter.freebsd.dk> <20040226.130330.54448406.imp@bsdimp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In message: <20040226.130330.54448406.imp@bsdimp.com>
            "M. Warner Losh" <imp@bsdimp.com> writes:
: In message: <2468.1077825069@critter.freebsd.dk>
:             "Poul-Henning Kamp" <phk@phk.freebsd.dk> writes:
: : In message <xzpbrnllnj6.fsf@dwp.des.no>, 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.
: 
: There's not really a tree for pseudo devices right now.  They just are
: kludged into the system any old way that they can be at the moment.
: They aren't part of the hardware device hierarchy.

Hate to reply to myself....

By impliciation we shouldn't kludge this mechanism to include them,
but consider having a pseudo0 attached to nexus0 that accumulates them
so they are less of a kludge to the whole system.  Also gives a more
uniform way of controlling them.

Warner



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040226.130749.96599763.imp>