Subject: sysctls for everything!
To: None <tech-kern@netbsd.org>
From: Simon Burge <simonb@netbsd.org>
List: tech-kern
Date: 06/13/2000 00:24:41
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
	./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,
pstat, slstats, trpt and trsp all should be fairly mechanical to convert
to sysctl() due to the restricted (in terms of number, not size) amount
of data they access.  That leaves fstat, netstat, systat and ifmcstat to
look at in more detail...

Is this worth me pursuing further?

Simon.