From owner-acpi-jp@jp.freebsd.org  Fri Dec 15 16:01:05 2000
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id QAA40747;
	Fri, 15 Dec 2000 16:01:05 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from tasogare.imasy.or.jp (daemon@tasogare.imasy.or.jp [202.227.24.5])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id QAA40723;
	Fri, 15 Dec 2000 16:00:58 +0900 (JST)
	(envelope-from iwasaki@jp.FreeBSD.org)
Received: from localhost (iwasaki.imasy.or.jp [202.227.24.92])
	by tasogare.imasy.or.jp (8.11.1+3.4W/3.7W-tasogare/smtpfeed 1.07) with ESMTP id eBF70tk30538;
	Fri, 15 Dec 2000 16:00:55 +0900 (JST)
	(envelope-from iwasaki@jp.FreeBSD.org)
To: acpi-jp@jp.freebsd.org, msmith@freebsd.org
Cc: iwasaki@jp.freebsd.org
In-Reply-To: <200012142256.eBEMuDo00835@mass.osd.bsdi.com>
References: <20001215002538P.iwasaki@jp.FreeBSD.org>
	<200012142256.eBEMuDo00835@mass.osd.bsdi.com>
X-Mailer: Mew version 1.94.1 on Emacs 19.34 / Mule 2.3 (SUETSUMUHANA)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-Id: <20001215160054A.iwasaki@jp.FreeBSD.org>
Date: Fri, 15 Dec 2000 16:00:54 +0900
From: Mitsuru IWASAKI <iwasaki@jp.freebsd.org>
X-Dispatcher: imput version 20000228(IM140)
Lines: 20
Reply-To: acpi-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+000315
X-Sequence: acpi-jp 971
Subject: [acpi-jp 971] Re: Some power device driver. 
Errors-To: owner-acpi-jp@jp.freebsd.org
Sender: owner-acpi-jp@jp.freebsd.org
X-Originator: iwasaki@jp.freebsd.org

> > BTW, How about daemon programs which need event notification mechanism
> > such as select/poll/kqueue?  I think we'd better to have dedicated 
> > control files for this purpose.
> 
> Er, why?  kqueue doesn't use control files at all.  I would definitely 
> recommend using it for acpi->userland notification.

Yes, I think it's one of the advantages from the other.  I just
enumerated kqueue as one of the event notification mechanisms.

One thing I'm concerning about using kqueue is API
compatibility/portability among *BSDs.  I'm not sure this is FreeBSD
specific API or they've had it already or have any plan to implement
kqueue(2) or not.  Does anyone know this?

If kqueue is (or become) common BSD API, it would be a good choice.
If not, we'd better to use traditional API and have dedicated control
file(s) as mentioned.

Any comments?
