linux-sg2042/Documentation/driver-model
Tejun Heo 9ac7849e35 devres: device resource management
Implement device resource management, in short, devres.  A device
driver can allocate arbirary size of devres data which is associated
with a release function.  On driver detach, release function is
invoked on the devres data, then, devres data is freed.

devreses are typed by associated release functions.  Some devreses are
better represented by single instance of the type while others need
multiple instances sharing the same release function.  Both usages are
supported.

devreses can be grouped using devres group such that a device driver
can easily release acquired resources halfway through initialization
or selectively release resources (e.g. resources for port 1 out of 4
ports).

This patch adds devres core including documentation and the following
managed interfaces.

* alloc/free	: devm_kzalloc(), devm_kzfree()
* IO region	: devm_request_region(), devm_release_region()
* IRQ		: devm_request_irq(), devm_free_irq()
* DMA		: dmam_alloc_coherent(), dmam_free_coherent(),
		  dmam_declare_coherent_memory(), dmam_pool_create(),
		  dmam_pool_destroy()
* PCI		: pcim_enable_device(), pcim_pin_device(), pci_is_managed()
* iomap		: devm_ioport_map(), devm_ioport_unmap(), devm_ioremap(),
		  devm_ioremap_nocache(), devm_iounmap(), pcim_iomap_table(),
		  pcim_iomap(), pcim_iounmap()

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
2007-02-09 17:39:36 -05:00
..
binding.txt Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
bus.txt [PATCH] pm_message_t: more fixes in common and i386 2005-04-16 15:25:24 -07:00
class.txt Fix typos in Documentation/: 'H'-'M' 2006-10-03 22:50:39 +02:00
device.txt [PATCH] Driver Core: driver model doc update 2005-06-20 15:15:29 -07:00
devres.txt devres: device resource management 2007-02-09 17:39:36 -05:00
driver.txt Fix typos in Documentation/: 'Q'-'R' 2006-10-03 22:54:15 +02:00
interface.txt Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
overview.txt Documentation: remove duplicated words 2006-10-03 22:57:56 +02:00
platform.txt Documentation/driver-model/platform.txt update/rewrite 2006-12-01 14:52:02 -08:00
porting.txt Fix typos in /Documentation : Misc 2006-11-30 05:21:10 +01:00