From owner-freebsd-arch@FreeBSD.ORG Tue Jul 10 22:38:00 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 C679B16A46C; Tue, 10 Jul 2007 22:38:00 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.freebsd.org (Postfix) with ESMTP id 8040F13C469; Tue, 10 Jul 2007 22:38:00 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (unknown [192.168.61.3]) by phk.freebsd.dk (Postfix) with ESMTP id DA07217380; Tue, 10 Jul 2007 22:37:58 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.14.1/8.14.1) with ESMTP id l6AMbwjb053706; Tue, 10 Jul 2007 22:37:58 GMT (envelope-from phk@critter.freebsd.dk) To: "Constantine A. Murenin" From: "Poul-Henning Kamp" In-Reply-To: Your message of "Tue, 10 Jul 2007 18:23:28 -0400." <469406E0.3090206@FreeBSD.org> Date: Tue, 10 Jul 2007 22:37:58 +0000 Message-ID: <53705.1184107078@critter.freebsd.dk> Sender: phk@critter.freebsd.dk Cc: Rui Paulo , Shteryana Shopova , 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 List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jul 2007 22:38:00 -0000 In message <469406E0.3090206@FreeBSD.org>, "Constantine A. Murenin" writes: >On 10/07/2007 17:43, Poul-Henning Kamp wrote: > >> A number of observations: >> >> The main problem about hardware monitoring is the lack of a name-space. >> >> The OpenBSD sysctl doesn't get anywhere close to providing that. > >There is no lack in namespace, specifically after the recent redesign of >the framework. > >When you do sysctl(3) calls in OpenBSD 4.1 [...] >How do you see this as a lack of a namespace? What OpenBSD has is an enumeration, and that is not the same as a name-space. If you live in the USA, chances are that you have a social security number. That is an example of an enumeration: "We have all these FOOs and we need to tell them apart". However, you parents gave you a name, because what that is the key to the human name-space, which is so called for the obvious reason. Physical measurements are only relevant in the context of their physical location and the OpenBSD enumeration doesn't even encode this, it is only interested in the logical location of the sensor, what kind of bus it is on, what kind of address it has. For any hw-sensor namespace to make sense, it must, as a minimum, identify the sensors in terms of the device(-drivers) associated with the hardware where the sensor senses, not the device-driver of the sensor itself. The OpenBSD stuff is a 1980 style hack, and should not be propagated. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.