From owner-cvs-all Wed May 20 19:59:54 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA28973 for cvs-all-outgoing; Wed, 20 May 1998 19:59:54 -0700 (PDT) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from rah.star-gate.com (rah.star-gate.com [209.133.7.234]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA28800; Wed, 20 May 1998 19:58:59 -0700 (PDT) (envelope-from hasty@rah.star-gate.com) Received: from rah.star-gate.com (localhost.star-gate.com [127.0.0.1]) by rah.star-gate.com (8.8.8/8.8.8) with ESMTP id TAA12797; Wed, 20 May 1998 19:58:47 -0700 (PDT) (envelope-from hasty@rah.star-gate.com) Message-Id: <199805210258.TAA12797@rah.star-gate.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Bruce Evans 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 In-reply-to: Your message of "Wed, 20 May 1998 23:35:59 +1000." <199805201335.XAA09144@godzilla.zeta.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 20 May 1998 19:58:47 -0700 From: Amancio Hasty Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk 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