Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Oct 2007 17:00:33 -0700
From:      John-Mark Gurney <gurney_j@resnet.uoregon.edu>
To:        Andrey Chernov <ache@nagual.pp.ru>, Alexander Leidinger <netchild@FreeBSD.ORG>, Poul-Henning Kamp <phk@phk.freebsd.dk>, Wilko Bulte <wb@freebie.xs4all.nl>, src-committers@FreeBSD.ORG, cvs-src@FreeBSD.ORG, cvs-all@FreeBSD.ORG
Subject:   Re: 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 ...
Message-ID:  <20071018000032.GU39759@funkthat.com>
In-Reply-To: <20071017202312.GA78324@nagual.pp.ru>
References:  <20071015152408.10kvgtog6cooc4wc@webmail.leidinger.net> <48258.1192460507@critter.freebsd.dk> <20071015210909.1b6b693b@deskjail> <20071015202115.GP39759@funkthat.com> <20071016184047.8zh3fl90gksks40c@webmail.leidinger.net> <20071017202312.GA78324@nagual.pp.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
Andrey Chernov wrote this message on Thu, Oct 18, 2007 at 00:23 +0400:
> gOn Tue, Oct 16, 2007 at 06:40:47PM +0200, Alexander Leidinger wrote:
> >> like /var/run/log or /var/run/devd.pipe, that a userland daemon running
> >> as root that has access to ISA I/O and related resources...  It's
> >> that simple...
> > 
> > And the code doesn't exists. And when it is written, when will it be 
> > bugfree enough? The sysctl way of exporting integer data already has a good 
> > track record, and porting the existing lm sensor (from a project which is 
> > known to take much care about security) was easier to get right. The 
> > project also was not about the lm sensor (I don't go and count the size for 
> > the small lm sensor now). The lm sensor was one example of using it. I 
> > don't think objection to the lm sensor driver should lead to removal of the 
> > framework itself. One possible reaction could be to say that the lm sensor 
> > should move to ports.
> 
> 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.)

-- 
  John-Mark Gurney				Voice: +1 415 225 5579

     "All that I will do, has been done, All that I have, has not."



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071018000032.GU39759>