]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/mach/task_special_ports.h
xnu-4903.221.2.tar.gz
[apple/xnu.git] / osfmk / mach / task_special_ports.h
index fb08e1b7d66f1964f77d8dfadffe7cb1bfccedd8..9080a451e42392cc41a59bdc6d6a9013fd685d82 100644 (file)
@@ -88,6 +88,11 @@ typedef      int     task_special_port_t;
 
 #define TASK_ACCESS_PORT       9       /* Permission check for task_for_pid. */
 
+#define TASK_DEBUG_CONTROL_PORT 10     /* debug control port */
+
+#define TASK_RESOURCE_NOTIFY_PORT   11 /* overrides host special RN port */
+
+#define TASK_MAX_SPECIAL_PORT TASK_RESOURCE_NOTIFY_PORT
 
 /*
  *     Definitions for ease of use
@@ -108,6 +113,9 @@ typedef     int     task_special_port_t;
 #define task_get_bootstrap_port(task, port)    \
                (task_get_special_port((task), TASK_BOOTSTRAP_PORT, (port)))
 
+#define task_get_debug_control_port(task, port) \
+               (task_get_special_port((task), TASK_DEBUG_CONTROL_PORT, (port)))
+
 #define task_set_bootstrap_port(task, port)    \
                (task_set_special_port((task), TASK_BOOTSTRAP_PORT, (port)))
 
@@ -117,4 +125,7 @@ typedef     int     task_special_port_t;
 #define task_set_task_access_port(task, port)  \
                (task_set_special_port((task), TASK_ACCESS_PORT, (port)))
 
+#define task_set_task_debug_control_port(task, port) \
+               (task_set_special_port((task), TASK_DEBUG_CONTROL_PORT, (port)))
+
 #endif /* _MACH_TASK_SPECIAL_PORTS_H_ */