From owner-freebsd-current Sun Aug 12 17:25:32 2001 Delivered-To: freebsd-current@freebsd.org Received: from mail6.speakeasy.net (mail6.speakeasy.net [216.254.0.206]) by hub.freebsd.org (Postfix) with ESMTP id 7773037B406 for ; Sun, 12 Aug 2001 17:25:28 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (qmail 23323 invoked from network); 13 Aug 2001 00:25:28 -0000 Received: from unknown (HELO laptop.baldwin.cx) ([64.81.54.73]) (envelope-sender ) by mail6.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 13 Aug 2001 00:25:28 -0000 Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <15222.50892.75406.972475@zircon.zircon.seattle.wa.us> Date: Sun, 12 Aug 2001 17:25:31 -0700 (PDT) From: John Baldwin To: Joe Kelsey Subject: Re: FreeBSD's aggressive keyboard probe/attach Cc: current@freebsd.org, Kazutaka YOKOTA Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 12-Aug-01 Joe Kelsey wrote: > Thank you very much for the clear and cogent explanation of your > philosophy of the psm code. Could I suggest that you copy the > aforementioned e-mail directly into the psm.c file for everyone to see > in posterity? > > Also, I have a fundamental problem with device flags. I believe that > every situation which uses device flags should instead use sysctl > variables, allowing easy manipulation at run-time. Of course, there are > no doubt situations not addressable at run-time, but these should be the > rare special cases where a driver flag is used. Patches accepted. This is a volunteer project. If you want to be productive, work up a device attribute interface that allows devices to query attributes and allows devices to be notified when outside events change their attributes. You should probably use kernel environment variables (like the hints we have now) for setting attributes from the loader, and then use sysctl's to back the runtime interface (IMO). I realize the user side of the attributes is up for debate, but working on solving this problem is much more problem than complaining that people aren't giving you the free gift you want. -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message