aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/kmi/regions.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/kmi/regions.h b/include/kmi/regions.h
index 74d4387..fe263ae 100644
--- a/include/kmi/regions.h
+++ b/include/kmi/regions.h
@@ -236,6 +236,15 @@ struct mem_region *find_first_region(struct mem_region_root *r);
*/
struct mem_region *find_used_region(struct mem_region_root *r, vm_t start);
+/**
+ * Find used memory region inside which \p addr is.
+ * Note the significant difference from \ref find_used_region which requires the
+ * address to exactly match the start of a region.
+ *
+ * @param r Memory region root.
+ * @param addr Address to look for.
+ * @return Pointer to owning memory region or \c NULL if no such exists.
+ */
struct mem_region *find_addr_region(struct mem_region_root *r, vm_t addr);
/**