Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 May 1998 19:58:47 -0700
From:      Amancio Hasty <hasty@rah.star-gate.com>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        jkh@time.cdrom.com, ahasty@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-committers@FreeBSD.ORG, cvs-sys@FreeBSD.ORG, luigi@labinfo.iet.unipi.it, roger@cs.strath.ac.uk
Subject:   Re: cvs commit: src/sys/pci brooktree848.c 
Message-ID:  <199805210258.TAA12797@rah.star-gate.com>
In-Reply-To: Your message of "Wed, 20 May 1998 23:35:59 %2B1000." <199805201335.XAA09144@godzilla.zeta.org.au> 

next in thread | previous in thread | raw e-mail | index | archive | help
Actually, it is more natural to standardized around a unified interface
ala snmp . /dev/hairydevicename with its godzilla ioctl  and matching
hairy control program is not intuitive nor a centralized mechanism
to access both the kernel and its devices.

sysctl type interface could easily be extended to support
multiple variables:
sysctl -w  hw.bt848.1.mute=1 hw.bt848.2.tuner=0.

If I want to find out all the bt848 devices on the system:
sysctl hw.bt848 
which does a snmplike walk on the node hw.bt848

Incidentely, you can still maintain the device control programs as shell
wrappers which just use sysctl commands;however, the converse is not true.

	Cheers,
	Amancio




> >> It sure will be nice to have a uniform way to configure the kernel and its
> >> modules ala sysctl rather than having to remember N "hairy device specific" 
> >> programs.
> >
> >There is that, Bruce.  Are you really arguing that it's more natural
> >to have a ccdcontrol and a pppcontrol and a rndcontrol and a
> >foocontrol and a ... than it is to have a handful of sysctl variables?
> 
> No, I'm arguing that it is more natural to have a ccdcontrol and etc.
> than it it is to have a ccd sysctl and a ppp sysctl and a rnd sysctl
> and a foo sysctl and a ..., each with its own more than a handful of
> sub-variables, each with its own kludges to handle multiple units and
> each with its own kludges to recover device attributes.
> 
> Bruce



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



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