From owner-cvs-src@FreeBSD.ORG Thu Oct 18 01:14:33 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 C153D16A421; Thu, 18 Oct 2007 01:14:33 +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 2A0B013C481; Thu, 18 Oct 2007 01:14:32 +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 l9I1ERCL082586; Thu, 18 Oct 2007 05:14:27 +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=1192670067; bh=aQGX4tvdXDAkfOmMkEWTQShIjRCakkgiXXUybMP bgLs=; l=819; h=Date:From:To:Subject:Message-ID:Mail-Followup-To: References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To:User-Agent; b=gWluUtDS0VYk60kG238fnJAvaSoe6k9cUeRh5sAT kOrl430WDfPLXWklJssq95hAEZUCeellctT4drgxw3jOq+V0OhoyH6KYgAaPrNhsOwe eBOrpWhppQJYLtVtBu39Y/0cxpbN8c9W15M+mE23eVjp2qvSLYxsyMDoFjKzMJfw= Received: (from ache@localhost) by nagual.pp.ru (8.14.1/8.14.1/Submit) id l9I1EQLc082584; Thu, 18 Oct 2007 05:14:26 +0400 (MSD) (envelope-from ache) Date: Thu, 18 Oct 2007 05:14:25 +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: <20071018011425.GA82493@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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071018000032.GU39759@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-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list 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 01:14:33 -0000 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/