Subject: Re: sysctls for everything!
To: Simon Burge <simonb@netbsd.org>
From: Jason R Thorpe <thorpej@zembu.com>
List: tech-kern
Date: 06/12/2000 08:22:04
On Tue, Jun 13, 2000 at 12:24:41AM +1000, Simon Burge wrote:

 > After the recent updates for ps, top and ipcs to use sysctl()'s for
 > accessing kernel data, would it be a "Good Thing(tm)" to apply this
 > to the rest of the traditional kmem grovellers?  Here's a list of
 > Makefiles that have BINGRP=kmem:
 > 
 > 	./sbin/ccdconfig/Makefile

             ^^^^^^^^^^^^^^^^
So, it would be stupid to add this one without a better sysctl mechanism.

 > 	./sbin/dmesg/Makefile
 > 	./usr.bin/fstat/Makefile
 > 	./usr.bin/modstat/Makefile
 > 	./usr.bin/netstat/Makefile
 > 	./usr.bin/nfsstat/Makefile
 > 	./usr.bin/systat/Makefile
 > 	./usr.bin/vmstat/Makefile
 > 	./usr.sbin/eeprom/Makefile
 > 	./usr.sbin/ifmcstat/Makefile
 > 	./usr.sbin/iostat/Makefile
 > 	./usr.sbin/pstat/Makefile
 > 	./usr.sbin/slstats/Makefile
 > 	./usr.sbin/trpt/Makefile
 > 	./usr.sbin/trsp/Makefile
 > 
 > Of these, it's even questionable (to me) whether ccdconfig should be
 > setgid kmem.  All of dmesg, modstat, nfsstat, vmstat, eeprom, iostat,

ccdconfig is setgid kmem so you can do:

ccdconfig -g

...to get a dump of the current ccd configuration.

-- 
        -- Jason R. Thorpe <thorpej@zembu.com>