From owner-acpi-jp@jp.FreeBSD.org Sat Jan  3 09:01:09 2004
Received: (from daemon@localhost)
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) id i03019N08355;
	Sat, 3 Jan 2004 09:01:09 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from elvis.mu.org (postfix@elvis.mu.org [192.203.228.196])
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) with ESMTP/inet id i03018C08342
	for <acpi-jp@jp.FreeBSD.org>; Sat, 3 Jan 2004 09:01:08 +0900 (JST)
	(envelope-from msmith@freebsd.org)
Received: from [192.168.0.100] (c-24-7-66-113.client.comcast.net [24.7.66.113])
	by elvis.mu.org (Postfix) with ESMTP id 99EB85C784
	for <acpi-jp@jp.FreeBSD.org>; Fri,  2 Jan 2004 16:01:06 -0800 (PST)
Mime-Version: 1.0 (Apple Message framework v609)
In-Reply-To: <XFMail.20040102132727.jhb@FreeBSD.org>
References: <XFMail.20040102132727.jhb@FreeBSD.org>
Content-Type: text/plain; charset=US-ASCII; format=flowed
Message-Id: <ED173292-3D7F-11D8-AE15-000393C72BD6@freebsd.org>
Content-Transfer-Encoding: 7bit
From: Mike Smith <msmith@freebsd.org>
To: acpi-jp@jp.FreeBSD.org
X-Mailer: Apple Mail (2.609)
Reply-To: acpi-jp@jp.FreeBSD.org
Precedence: list
Date: Fri, 2 Jan 2004 16:01:05 -0800
X-Sequence: acpi-jp 2969
Subject: [acpi-jp 2969] Re: [patch] Thermal ioctls?
Sender: owner-acpi-jp@jp.FreeBSD.org
X-Originator: msmith@freebsd.org
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+031216


On Jan 2, 2004, at 10:27 AM, John Baldwin wrote:

> I had a local patch.  But it doesn't work with multiple zones.  Also, 
> given
> the simplicity of sysctlbyname(), I'd rather just use sysctl's.  We 
> would
> possibly need a sysctl that listed the current zones though:
>
> hw.acpi.thermal.zones: tz0 (for example)

Why?  Just enumerate them.

In a tool, you can just iterate until you hit ENOENT, on the 
commandline you can say

sysctl hw.acpi.thermal

to get a complete dump of the subtree.

  = Mike

