Subject: Re: nore on disk stats
To: None <thorpej@nas.nasa.gov>
From: Frank van der Linden <frank@fwi.uva.nl>
List: tech-install
Date: 11/14/1995 15:06:50
Quoting Jason Thorpe,

>  Jon Buller <jonb@metronet.com> wrote:

>  > Perhaps what is needed is a program like 'autoconf' on Pyramid's
>  > DC/OSx (their SVR4 alike)  It prints out *everything* the OS knows
>  > about the hardware config, and the drivers, etc.  It also has a
>  > flag to output a machine parsable version instead of something more
>  > human readable.  All their install scripts grep through the output
>  > of autoconf to find things...

> Well, that would require that our drivers a) store this information, b) 
> it's in a consistent form.  If you want just primitive info, I wrote a 
> short (~300 lines, including comments) that demonstrates how to get stuff 
> like the device name, it's parent device, and it's device class (DV_DISK, 
> DV_IFNET, etc.) using libkvm.  On my Sun 4/260:

The name 'lsdev' comes to mind here. I don't know which OS had it first, I only
know the AIX and FreeBSD versions. The latter is implemented using sysctl().
Such a thing could perhaps also be implemented using an ioctl call like
SIOCGIFCONF, although I can't think of a suitable way to create and fd
that you would use here..

- Frank