Re: cvs commit: src/sys/pci brooktree848.c

[ Available lists | Index of cvs-all | Month of May 1998 | Week of 19 May 1998 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Mike Smith <mike@smith.net.au>
Date
19 May 1998 14:59:22
Subject
Re: cvs commit: src/sys/pci brooktree848.c
Message-ID
199805192052.NAA00492@dingo.cdrom.com


[ Hide this part ]
> > While I'm here, I'd like to note that sysctl is somewhat like SNMP,
> > and SNMP variables have a unit name as this small extract from a
> > snmpwalk shows.
>
> > Things that have the notion of units should reflect this in its
> > sysctl, even if 99.999% of people only have one of those interfaces.
>
> I strongly disagree. Devices that have a notion of units should export
> a unit-based interface in the filesystem (i.e., /dev/foo999). sysctl
> is very much unsuited to this. (I'm still unhappy about the way I had
> to kluge things for the ifmib. At least it works...)

It's debatable as to whether the MIB should exist in the filespace, but
note that it is actually quite trivial to export stuff in this fashion
using sysctl, as it supports handing traversal off to a client-supplied
traversal routine at any level.

--
\\ Sometimes you're ahead, \\ Mike Smith
\\ sometimes you're behind. \\ mike@smith.net.au
\\ The race is long, and in the \\ msmith@freebsd.org
\\ end it's only with yourself. \\ msmith@cdrom.com



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


Elapsed time: 0.123 seconds