From owner-cvs-src@FreeBSD.ORG Thu Oct 18 00:00:37 2007 Return-Path: Delivered-To: cvs-src@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A4A8516A418; Thu, 18 Oct 2007 00:00:37 +0000 (UTC) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (gate.funkthat.com [69.17.45.168]) by mx1.freebsd.org (Postfix) with ESMTP id 451AD13C468; Thu, 18 Oct 2007 00:00:37 +0000 (UTC) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (90tezgnv85lp4ook@localhost.funkthat.com [127.0.0.1]) by hydrogen.funkthat.com (8.13.6/8.13.3) with ESMTP id l9I00ZX4029413; Wed, 17 Oct 2007 17:00:35 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.13.6/8.13.3/Submit) id l9I00XPm029412; Wed, 17 Oct 2007 17:00:33 -0700 (PDT) (envelope-from jmg) Date: Wed, 17 Oct 2007 17:00:33 -0700 From: John-Mark Gurney To: Andrey Chernov , Alexander Leidinger , Poul-Henning Kamp , Wilko Bulte , src-committers@FreeBSD.ORG, cvs-src@FreeBSD.ORG, cvs-all@FreeBSD.ORG Message-ID: <20071018000032.GU39759@funkthat.com> Mail-Followup-To: Andrey Chernov , Alexander Leidinger , Poul-Henning Kamp , Wilko Bulte , src-committers@FreeBSD.ORG, cvs-src@FreeBSD.ORG, cvs-all@FreeBSD.ORG 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071017202312.GA78324@nagual.pp.ru> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 5.4-RELEASE-p6 i386 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (hydrogen.funkthat.com [127.0.0.1]); Wed, 17 Oct 2007 17:00:36 -0700 (PDT) Cc: 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 ... X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John-Mark Gurney List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Oct 2007 00:00:37 -0000 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."