From owner-acpi-jp@jp.freebsd.org  Tue Nov 14 15:54:44 2000
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id PAA13754;
	Tue, 14 Nov 2000 15:54:44 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from mass.osd.bsdi.com (c228380-a.sfmissn1.sfba.home.com [24.20.90.44])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id PAA13747
	for <acpi-jp@jp.freebsd.org>; Tue, 14 Nov 2000 15:54:43 +0900 (JST)
	(envelope-from msmith@mass.osd.bsdi.com)
Received: from mass.osd.bsdi.com (localhost [127.0.0.1])
	by mass.osd.bsdi.com (8.11.0/8.11.1) with ESMTP id eAE70sF00934
	for <acpi-jp@jp.freebsd.org>; Mon, 13 Nov 2000 23:00:54 -0800 (PST)
	(envelope-from msmith@mass.osd.bsdi.com)
Message-Id: <200011140700.eAE70sF00934@mass.osd.bsdi.com>
X-Mailer: exmh version 2.1.1 10/15/1999
To: acpi-jp@jp.freebsd.org
In-reply-to: Your message of "Sat, 11 Nov 2000 04:03:40 +0900."
             <20001111040340X.iwasaki@jp.FreeBSD.org> 
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Mon, 13 Nov 2000 23:00:54 -0800
From: Mike Smith <msmith@freebsd.org>
Reply-To: acpi-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+000315
X-Sequence: acpi-jp 903
Subject: [acpi-jp 903] Re: Some power device driver. 
Errors-To: owner-acpi-jp@jp.freebsd.org
Sender: owner-acpi-jp@jp.freebsd.org
X-Originator: msmith@freebsd.org

> Cool!  BTW, how can we get info. (e.g. battery, temperature) from userland?
> Any ideas?
> 
> 1. ioctl interface
> 2. sysctl interface
> 3. ACPI Filesystem
> 4. others
> 
> I vote ioctl allocating different minor number for the ACPI devices.
> It's easier to implement and port them to other *BSD (yes, including BSD/OS).

I still prefer sysctl, because it's very easy to distribute the 
namespace.  Using control devices, we are going to end up with dozens of 
little device nodes in /dev (/dev/acpi, /dev/acpi_batt0, /dev/acpi_batt1, 
/dev/acpi_message_led, /dev/acpi_processor, etc. etc.) which is just Bad.

-- 
... every activity meets with opposition, everyone who acts has his
rivals and unfortunately opponents also.  But not because people want
to be opponents, rather because the tasks and relationships force
people to take different points of view.  [Dr. Fritz Todt]
           V I C T O R Y   N O T   V E N G E A N C E


