summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJoan Lledó <jlledom@member.fsf.org>2021-11-06 09:13:32 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2021-11-07 17:55:13 +0100
commit44ca02a46b6fa0a8f1181fdc08efa779c3bdce80 (patch)
tree140b4a8af5706b6e204bf398baa117a4f62ff615 /include
parenta0473675b98f51c48ea92c357793c2dbed0d1d85 (diff)
vm: vm_region_get_proxy
To get a proxy to the region a given address belongs to, with protection and range limited to the region ones. * include/mach/mach4.defs: vm_region_get_proxy RPC declaration * vm/vm_map.c: vm_region_get_proxy implementation Message-Id: <20211106081333.10366-2-jlledom@mailfence.com>
Diffstat (limited to 'include')
-rw-r--r--include/mach/mach4.defs10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/mach/mach4.defs b/include/mach/mach4.defs
index 22bbbaec..2820bd73 100644
--- a/include/mach/mach4.defs
+++ b/include/mach/mach4.defs
@@ -111,3 +111,13 @@ routine memory_object_create_proxy(
start : vm_offset_array_t;
len : vm_size_array_t;
out proxy : mach_port_t);
+
+/* Gets a proxy to the region that ADDRESS belongs to, starting at the region
+ start, with MAX_PROTECTION and LEN limited by the region ones, and returns
+ it in *PORT. */
+routine vm_region_get_proxy(
+ task : task_t;
+ address : vm_address_t;
+ max_protection : vm_prot_t;
+ len : vm_size_t;
+ out proxy : mach_port_t);