From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Wilcox Subject: Re: Where can I find some documentation/examples? Date: Thu, 8 Jan 2004 04:52:07 +0000 Sender: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Message-ID: <20040108045207.GR17182@parcelfarce.linux.theplanet.co.uk> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Errors-To: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Dino Klein Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: linux-acpi@vger.kernel.org On Wed, Jan 07, 2004 at 11:26:08PM -0500, Dino Klein wrote: > I've taken a look at the serial driver's use of acpi in order to discover ports, and their resources (in kernel 2.6.0). One thing > puzzled me there, since it seems that it is possible to unload their acpi related, and therefore having it call > acpi_bus_unregister_driver(); however, as far as I can tell, the serial port itself is still being used by the serial driver. This > is why I'm not quite sure about the relationship between a regular linux driver, and the acpi subsystem. > So, any pointers would be appreciated. You don't necessarily want to take that driver as a good example of what's needed to write an ACPI driver. Actually somebody else just pointed out the same thing to me earlier today. On the systems I work on, I use serial console, so it's pretty much mandatory to have 8250 built in and hence the remove method never gets called ;-) Take a look at something like the button driver instead. -- "Next the statesmen will invent cheap lies, putting the blame upon the nation that is attacked, and every man will be glad of those conscience-soothing falsities, and will diligently study them, and refuse to examine any refutations of them; and thus he will by and by convince himself that the war is just, and will thank God for the better sleep he enjoys after this process of grotesque self-deception." -- Mark Twain ------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html