summaryrefslogtreecommitdiffstats
path: root/include/linux/ioport.h
diff options
context:
space:
mode:
authorYinghai Lu2009-12-23 00:02:22 +0100
committerJesse Barnes2010-02-23 01:17:00 +0100
commit5eeec0ec931a01e85b3701ce121b7d8a1800ec60 (patch)
tree2efe474832b68a97c0460fc7f5e58a488f977dbb /include/linux/ioport.h
parentPCI: separate pci_setup_bridge to small functions (diff)
downloadkernel-qcow2-linux-5eeec0ec931a01e85b3701ce121b7d8a1800ec60.tar.gz
kernel-qcow2-linux-5eeec0ec931a01e85b3701ce121b7d8a1800ec60.tar.xz
kernel-qcow2-linux-5eeec0ec931a01e85b3701ce121b7d8a1800ec60.zip
resource: add release_child_resources
Useful for freeing a portion of the resource tree, e.g. when trying to reallocate resources more efficiently. Signed-off-by: Yinghai Lu <yinghai@kernel.org> Acked-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'include/linux/ioport.h')
-rw-r--r--include/linux/ioport.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/ioport.h b/include/linux/ioport.h
index 4a811891dbe3..dda98410d588 100644
--- a/include/linux/ioport.h
+++ b/include/linux/ioport.h
@@ -112,6 +112,7 @@ extern struct resource iomem_resource;
extern int request_resource(struct resource *root, struct resource *new);
extern int release_resource(struct resource *new);
+void release_child_resources(struct resource *new);
extern void reserve_region_with_split(struct resource *root,
resource_size_t start, resource_size_t end,
const char *name);