From ff0487ddf0ba1f98daef8265eb3a50b1570b8f41 Mon Sep 17 00:00:00 2001 From: Sergey Bugaev Date: Wed, 19 May 2021 18:14:37 +0300 Subject: libpager: Add pager_get_ro_port () A pager will now maintain a port to a read-only memory object proxy for itself, and let the users access it with pager_get_ro_port (). --- libpager/pager.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libpager/pager.h') diff --git a/libpager/pager.h b/libpager/pager.h index dd8026a7..16b47def 100644 --- a/libpager/pager.h +++ b/libpager/pager.h @@ -155,6 +155,9 @@ pager_change_attributes (struct pager *pager, mach_port_t pager_get_port (struct pager *pager); +mach_port_t +pager_get_ro_port (struct pager *pager); + /* Force termination of a pager. After this returns, no more paging requests on the pager will be honored, and the pager will be deallocated. (The actual deallocation might -- cgit v1.2.3