summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@gmail.com>2021-11-07 17:56:45 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2021-11-07 17:57:05 +0100
commitbca8c004cec8971d48b8411b0592f5ee6fb57bf6 (patch)
tree5f509ac61d294f6c25370cfec74d48e9d7335549
parent21b60d69fadd23e5081d1fd36beeee42f4e7976a (diff)
vm_region_get_proxy: rename to create_proxy
For coherency with memory_object_create_proxy.
-rw-r--r--include/mach/mach4.defs2
-rw-r--r--vm/vm_map.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/include/mach/mach4.defs b/include/mach/mach4.defs
index 2820bd73..61423a44 100644
--- a/include/mach/mach4.defs
+++ b/include/mach/mach4.defs
@@ -115,7 +115,7 @@ routine memory_object_create_proxy(
/* 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(
+routine vm_region_create_proxy(
task : task_t;
address : vm_address_t;
max_protection : vm_prot_t;
diff --git a/vm/vm_map.c b/vm/vm_map.c
index d082171a..7fe3e141 100644
--- a/vm/vm_map.c
+++ b/vm/vm_map.c
@@ -4809,16 +4809,16 @@ kern_return_t vm_region(
}
/*
- * vm_region_get_proxy:
+ * vm_region_create_proxy:
*
* 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.
*/
kern_return_t
-vm_region_get_proxy (task_t task, vm_address_t address,
- vm_prot_t max_protection, vm_size_t len,
- ipc_port_t *port)
+vm_region_create_proxy (task_t task, vm_address_t address,
+ vm_prot_t max_protection, vm_size_t len,
+ ipc_port_t *port)
{
kern_return_t ret;
vm_map_entry_t entry, tmp_entry;