From owner-freebsd-arch@FreeBSD.ORG Wed Oct 17 20:07:51 2007 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6CBD116A421 for ; Wed, 17 Oct 2007 20:07:51 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outT.internet-mail-service.net (outT.internet-mail-service.net [216.240.47.243]) by mx1.freebsd.org (Postfix) with ESMTP id 57C6C13C46B for ; Wed, 17 Oct 2007 20:07:51 +0000 (UTC) (envelope-from julian@elischer.org) Received: from mx0.idiom.com (HELO idiom.com) (216.240.32.160) by out.internet-mail-service.net (qpsmtpd/0.40) with ESMTP; Wed, 17 Oct 2007 13:07:50 -0700 X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e Received: from julian-mac.elischer.org (nat.ironport.com [63.251.108.100]) by idiom.com (Postfix) with ESMTP id 220C6126732; Wed, 17 Oct 2007 13:07:50 -0700 (PDT) Message-ID: <47166BA5.1000100@elischer.org> Date: Wed, 17 Oct 2007 13:08:05 -0700 From: Julian Elischer User-Agent: Thunderbird 2.0.0.6 (Macintosh/20070728) MIME-Version: 1.0 To: John Baldwin References: <200710171245.36949.jhb@freebsd.org> In-Reply-To: <200710171245.36949.jhb@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: arch@freebsd.org, "Constantine A. Murenin" Subject: Re: sensors fun.. X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Oct 2007 20:07:51 -0000 John Baldwin wrote: > > Other things that might be nice: > > - IWBN to have a userland interface to sensors. For example, if nothing else > a sensor enumerator rather than duplicating the sysctl loop as the current > code does. This would make it easier to at least adjust the current > artificial limit on the number of sensors since only one place in userland > would have to change. (BTW, having an artificial limit on the number of > sensors is lame. This is an example where using the normal way of walking a > sysctl tree is superior. You can lose the entire limit.) Having a userland > interface also makes it easier to have backends that are entirely in > userland. > maybe a loopback filesystem /var/run/sensors could be a loopback filesystem that exports a view of the sensors available. The process doing the work would be a userland process but it would be providing the information in the form of a filesystem so other processes could access it easily. >