From owner-freebsd-hackers Sat Jan 13 8:46:57 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from tasogare.imasy.or.jp (tasogare.imasy.or.jp [202.227.24.5]) by hub.freebsd.org (Postfix) with ESMTP id B5C9C37B401 for ; Sat, 13 Jan 2001 08:46:40 -0800 (PST) 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 f0DGkYk86994; Sun, 14 Jan 2001 01:46:34 +0900 (JST) (envelope-from iwasaki@jp.FreeBSD.org) To: takawata@shidahara1.planet.sci.kobe-u.ac.jp Cc: iwasaki@jp.FreeBSD.org, hackers@FreeBSD.ORG Subject: Re: CFR: Generalized power-management interface In-Reply-To: <200101131525.AAA05193@shidahara1.planet.sci.kobe-u.ac.jp> References: <20010113231549X.iwasaki@jp.FreeBSD.org> <200101131525.AAA05193@shidahara1.planet.sci.kobe-u.ac.jp> 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: <20010114014634Y.iwasaki@jp.FreeBSD.org> Date: Sun, 14 Jan 2001 01:46:34 +0900 From: Mitsuru IWASAKI X-Dispatcher: imput version 20000228(IM140) Lines: 15 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > >We don't know which power management system is enabled on the actual > >system, so it's impossible. We need one mandatory device for PM to be > >generalized. I think the opposite way is more reasonable. > > Why? Is it bad to check whether the device is available or not in rc? Ah, you mean we support the same ioctl interface directly in both apm and acpi for power management without passthru requests via generalized device, right? If ioctl is only the matter, I thinkg yes. But having own device file is still advantages when we start considering other cdevsw stuff such as open/close/read/write/poll/etc. I think the way you suggested may prevent generalized device interface improving and make existing-code to be more complicated. Thanks To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message