X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/3903760236c30e3b5ace7a4eefac3a269d68957c..527f99514973766e9c0382a4d8550dfb00f54939:/osfmk/mach/host_special_ports.h diff --git a/osfmk/mach/host_special_ports.h b/osfmk/mach/host_special_ports.h index 52a4a7449..73efdc4f4 100644 --- a/osfmk/mach/host_special_ports.h +++ b/osfmk/mach/host_special_ports.h @@ -100,8 +100,9 @@ #define HOST_CONTAINERD_PORT (18 + HOST_MAX_SPECIAL_KERNEL_PORT) #define HOST_NODE_PORT (19 + HOST_MAX_SPECIAL_KERNEL_PORT) #define HOST_RESOURCE_NOTIFY_PORT (20 + HOST_MAX_SPECIAL_KERNEL_PORT) +#define HOST_CLOSURED_PORT (21 + HOST_MAX_SPECIAL_KERNEL_PORT) -#define HOST_MAX_SPECIAL_PORT HOST_RESOURCE_NOTIFY_PORT +#define HOST_MAX_SPECIAL_PORT HOST_CLOSURED_PORT /* MAX = last since rdar://19421223 */ /* @@ -236,6 +237,12 @@ #define host_set_node_port(host, port) \ (host_set_special_port((host), HOST_NODE_PORT, (port))) +#define host_get_closured_port(host, port) \ + (host_get_special_port((host), \ + HOST_LOCAL_NODE, HOST_CLOSURED_PORT, (port))) +#define host_set_closured_port(host, port) \ + (host_set_special_port((host), HOST_CLOSURED_PORT, (port))) + /* HOST_RESOURCE_NOTIFY_PORT doesn't #defines these conveniences. All lookups go through send_resource_violation() */