From owner-cvs-all@FreeBSD.ORG Thu Oct 18 09:10:17 2007 Return-Path: Delivered-To: cvs-all@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3885516A421; Thu, 18 Oct 2007 09:10:17 +0000 (UTC) (envelope-from ache@nagual.pp.ru) Received: from nagual.pp.ru (nagual.pp.ru [194.87.13.69]) by mx1.freebsd.org (Postfix) with ESMTP id 4539A13C467; Thu, 18 Oct 2007 09:10:15 +0000 (UTC) (envelope-from ache@nagual.pp.ru) Received: from nagual.pp.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.14.1/8.14.1) with ESMTP id l9I9A8WV001660; Thu, 18 Oct 2007 13:10:08 +0400 (MSD) (envelope-from ache@nagual.pp.ru) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nagual.pp.ru; s=default; t=1192698609; bh=O/QRFSPTpAeIPkaqqJ+zGPKBFAjByYeMvdCPdaD KoXE=; l=1292; h=Date:From:To:Subject:Message-ID:Mail-Followup-To: References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To:User-Agent; b=RJd06lrXqs0iXKRvyTNSu5QvyemRZvUH/tqNnM1R i5VKuCsdqKQMLq2Ral1Rcb5I9LIaqQuZLEN9yA3w1pJAXwFh6cPiLMILa2GXp+beLXA YS2A3U0xwHl8maFYN6hexeQJhuolmdZhMWBP+hz8zO9p+e5YHEpvgrDPKD65sBOU= Received: (from ache@localhost) by nagual.pp.ru (8.14.1/8.14.1/Submit) id l9I9A8MB001659; Thu, 18 Oct 2007 13:10:08 +0400 (MSD) (envelope-from ache) Date: Thu, 18 Oct 2007 13:10:08 +0400 From: Andrey Chernov To: Alexander Leidinger , Poul-Henning Kamp , Wilko Bulte , src-committers@FreeBSD.ORG, cvs-src@FreeBSD.ORG, cvs-all@FreeBSD.ORG Message-ID: <20071018091008.GA1546@nagual.pp.ru> 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> <20071018000032.GU39759@funkthat.com> <20071018011425.GA82493@nagual.pp.ru> <20071018083322.GX39759@funkthat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071018083322.GX39759@funkthat.com> User-Agent: Mutt/1.5.16 (2007-06-09) 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-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Oct 2007 09:10:17 -0000 On Thu, Oct 18, 2007 at 01:33:22AM -0700, John-Mark Gurney wrote: > > (in general sensor can be more complicated than single integer) why > > If it's more complicated then that's different, but from my understanding > of the OpenBSD sensor framework is that you'd end up breaking those > "complicated" sensors into seperate sensors... I don't like OpenBSD sensors framework like almost everybody here:) I don't think that breaking complicated sensors into separate pieces is good idea. Usually reading/writing DEVFS device + few ioctls for complex cases must cover most complicated sensors. > > userland driver is ever needed? Simple daemon is enough. > > Exactly my point... A userland driver is necessary if all sensores are > to be listed in /dev/sensors/*... If it's only a subset that a userland > library uses to query a few sensors like current cpu temperature, and > the rest from a userland daemon, that's fine too... But /dev/sensors/* > is should not be the complete or primary source of sensor data... I have nothing against userland drivers, but prefer to have sensors into easy to use namespace (and, as devices after all, under DEVFS) with ability to set permissions for them separately, like file system allows. -- http://ache.pp.ru/