Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Jul 2000 09:34:39 +0200
From:      Neil Blakey-Milner <nbm@mithrandr.moria.org>
To:        Boris Popov <bp@butya.kz>
Cc:        Andrzej Bialecki <abial@webgiro.com>, freebsd-arch@freebsd.org
Subject:   Re: SysctlFS
Message-ID:  <20000713093439.A45743@mithrandr.moria.org>
In-Reply-To: <Pine.BSF.4.10.10007130754390.15644-100000@lion.butya.kz>; from bp@butya.kz on Thu, Jul 13, 2000 at 08:17:30AM %2B0700
References:  <Pine.BSF.4.20.0007121328020.49102-100000@mx.webgiro.com> <Pine.BSF.4.10.10007130754390.15644-100000@lion.butya.kz>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu 2000-07-13 (08:17), Boris Popov wrote:
> 	So, internal fs can have structure like that:
> 
> 	/bus	- newbus tree
> 	/sysctl	- sysctl tree

Once the "dynamic sysctls" hit the tree, I have been running a sysctl
exportation of newbus information for a few weeks (months, possibly).

There's also a "sysinfo" console program as a (badly written, since
sysctl is a pain to manipulate) reference on how to extract information
from it:

root0
nexus0
pcib0 <Intel 82443LX (440 LX) host to PCI bridge>
npx0 <math processor>
pci0 <PCI bus>
...
atapci0 <Intel PIIX4 ATA33 conroller>
ata0
ata1
eisa0: not present
vga0 <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff
sc0 <System console>
atkbdc0 <Keyboard controller (i8042)> at port 0x60,0x64
...
atpic0 <AT interrupt controller> at port 0x20-0x21,0xa0-0xa1 irq 2
sysresource4 <System Resource> at port 0x4d0-0x4d1,0x8000-0x803f,0x7000-0x700f

It just grabs the information from the sysctl export:

hw.devices.fdc0.desc: NEC 72065B or clone
hw.devices.fdc0.children: fd0,fd1
hw.devices.fdc0.state: attached
hw.devices.fdc0.irq: 6
hw.devices.fdc0.drq: 2
hw.devices.fdc0.ioport: 0x3f0-0x3f5,0x3f7

Windows-like Device Manager, anyone?

Neil
-- 
Neil Blakey-Milner
Sunesi Clinical Systems
nbm@mithrandr.moria.org


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




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