From owner-freebsd-arch@FreeBSD.ORG Wed Jul 11 18:57:28 2007 Return-Path: X-Original-To: freebsd-arch@FreeBSD.org Delivered-To: freebsd-arch@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3EF1C16A41F; Wed, 11 Jul 2007 18:57:28 +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 A7B5713C45B; Wed, 11 Jul 2007 18:57:27 +0000 (UTC) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (npjo3c49hd1whw7x@localhost.funkthat.com [127.0.0.1]) by hydrogen.funkthat.com (8.13.6/8.13.3) with ESMTP id l6BIvO8P051480; Wed, 11 Jul 2007 11:57:24 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.13.6/8.13.3/Submit) id l6BIvJcR051479; Wed, 11 Jul 2007 11:57:19 -0700 (PDT) (envelope-from jmg) Date: Wed, 11 Jul 2007 11:57:19 -0700 From: John-Mark Gurney To: Alexander Leidinger Message-ID: <20070711185718.GH1221@funkthat.com> Mail-Followup-To: Alexander Leidinger , Poul-Henning Kamp , Rui Paulo , Shteryana Shopova , freebsd-arch@FreeBSD.org, Robert Watson , "Constantine A. Murenin" References: <20070711190546.4b202080@deskjail> <57627.1184175231@critter.freebsd.dk> <20070711195110.48820aff@deskjail> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070711195110.48820aff@deskjail> 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 Cc: Rui Paulo , Shteryana Shopova , "Constantine A. Murenin" , Poul-Henning Kamp , Robert Watson , freebsd-arch@FreeBSD.org Subject: Re: Porting OpenBSD's sysctl hw.sensors framework to FreeBSD X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John-Mark Gurney List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jul 2007 18:57:28 -0000 Alexander Leidinger wrote this message on Wed, Jul 11, 2007 at 19:51 +0200: > Quoting "Poul-Henning Kamp" (Wed, 11 Jul 2007 17:33:51 +0000): > > There is no benefit from having it in the kernel. > > You need to get some information out of the kernel somehow (you cut > this part of my mail). And as far as I understand the high level > description (presentation in the net) of this framework, this does this > in an unified way. Do you propose to get the information out of the > kernel in a non-uniform way? No you don't. The kernel is just another "transport" layer so to say.. We are proposing a unified way via a userland front end... The userland library knows and can adapt to different ways of extracting the data.. If you hard code the kernel interface, when someone comes along and wants to write a complicated sensor in userland, he will then need to hack a "kernel frontend" to take his userland generated data, shove it into the kernel, just for another userland app to pull the data out.. I've thought about making a userland cdev interface so that we can emulate "v4l" in userland... If the v4l was a userland interface, I wouldn't need to add such a hack to the kernel.. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."