cvs commit: src/etc Makefile sensorsd.conf src/etc/defaults
rc.conf src/etc/rc.d Makefile sensorsd src/lib/libc/gen sysctl.3
src/sbin/sysctl sysctl.8 sysctl.c src/share/man/man5 rc.conf.5
src/share/man/man9 Makefile sensor_attach.9 src/sys/conf files ...
Andrey Chernov
ache at nagual.pp.ru
Wed Oct 17 18:14:33 PDT 2007
On Wed, Oct 17, 2007 at 05:00:33PM -0700, John-Mark Gurney wrote:
> > Why not to put them under DEVFS like /dev/sensors/* ? They are devices
> > after all. I agree that putting devices under sysctl.* is bad idea.
>
> a) How does a userland driver present a DEVFS/device instance?
>
> b) For exporting a simple integer, sysctl makes more sense than the
> device interface. (I'm not getting into naming the sysctl node, or
> where it should be located.)
Your a) and b) are in logical conflict. If they are only simple integers
(in general sensor can be more complicated than single integer) why
userland driver is ever needed? Simple daemon is enough.
I think loadable kernel modules are not worse than userland drivers since
can be used only by those who needs them.
--
http://ache.pp.ru/
More information about the cvs-src
mailing list