From 44ca02a46b6fa0a8f1181fdc08efa779c3bdce80 Mon Sep 17 00:00:00 2001 From: Joan Lledó Date: Sat, 6 Nov 2021 09:13:32 +0100 Subject: 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> --- include/mach/mach4.defs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include') 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); -- cgit v1.2.3