]> git.baikalelectronics.ru Git - kernel.git/commit
resources: Add lookup_resource()
authorGeert Uytterhoeven <geert@linux-m68k.org>
Sat, 7 May 2011 18:53:16 +0000 (20:53 +0200)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Sat, 30 Jul 2011 19:21:39 +0000 (21:21 +0200)
commitf9b84a02fe884ab0ee6aeac75fd8fe2329dd4376
tree3858d97ce2f91cdf6ec3badafbf66ef058e178a7
parentb5259a94ad89f91f464fbd02a17bd9cc3f23deb5
resources: Add lookup_resource()

Add a function to find an existing resource by a resource start address.
This allows to implement simple allocators (with a malloc/free-alike API)
on top of the resource system.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
include/linux/ioport.h
kernel/resource.c