#include <mach/task_special_ports.h> also included by <mach/mach.h>

mach/task_special_ports.h

20 macros · 1 typedef

typedeftask_special_port_t

typedef int task_special_port_t

macroTASK_KERNEL_PORT

#define TASK_KERNEL_PORT 1
The full task port for task.
CMU/MIT Mach reference · manual page · © Carnegie Mellon
[task-self send right] The port used to control this task. Used to send messages that affect the task. This is the port returned by mach_task_self.
a value of int

macroTASK_HOST_PORT

#define TASK_HOST_PORT 2
The host (priv) port for task.

macroTASK_NAME_PORT

#define TASK_NAME_PORT 3
The name port for task.

macroTASK_BOOTSTRAP_PORT

#define TASK_BOOTSTRAP_PORT 4
Bootstrap environment for task.
CMU/MIT Mach reference · manual page · © Carnegie Mellon
[bootstrap send right] The task's bootstrap port. Used to send messages requesting return of other system service ports.
a value of int

macroTASK_INSPECT_PORT

#define TASK_INSPECT_PORT 5
The inspect port for task.

macroTASK_READ_PORT

#define TASK_READ_PORT 6
The read port for task.

macroTASK_ACCESS_PORT

#define TASK_ACCESS_PORT 9
Permission check for task_for_pid.

macroTASK_DEBUG_CONTROL_PORT

#define TASK_DEBUG_CONTROL_PORT 10
debug control port

macroTASK_RESOURCE_NOTIFY_PORT

#define TASK_RESOURCE_NOTIFY_PORT 11
overrides host special RN port

macroTASK_MAX_SPECIAL_PORT

#define TASK_MAX_SPECIAL_PORT TASK_RESOURCE_NOTIFY_PORT

macrotask_get_kernel_port

#define task_get_kernel_port(task, port) (task_get_special_port((task), TASK_KERNEL_PORT, (port)))
GNU Mach reference · 7.2.5 Task Special Ports · © FSF, GFDL
kern_return_t task_get_kernel_port(task_t task, mach_port_t *kernel_port)
The function task_get_kernel_port is equivalent to the function task_get_special_port with the which_port argument set to TASK_KERNEL_PORT.

macrotask_set_kernel_port

#define task_set_kernel_port(task, port) (task_set_special_port((task), TASK_KERNEL_PORT, (port)))
GNU Mach reference · 7.2.5 Task Special Ports · © FSF, GFDL
kern_return_t task_set_kernel_port(task_t task, mach_port_t kernel_port)
The function task_set_kernel_port is equivalent to the function task_set_special_port with the which_port argument set to TASK_KERNEL_PORT.

macrotask_get_host_port

#define task_get_host_port(task, port) (task_get_special_port((task), TASK_HOST_PORT, (port)))

macrotask_set_host_port

#define task_set_host_port(task, port) (task_set_special_port((task), TASK_HOST_PORT, (port)))

macrotask_get_bootstrap_port

#define task_get_bootstrap_port(task, port) (task_get_special_port((task), TASK_BOOTSTRAP_PORT, (port)))
GNU Mach reference · 7.2.5 Task Special Ports · © FSF, GFDL
kern_return_t task_get_bootstrap_port(task_t task, mach_port_t *bootstrap_port)
The function task_get_bootstrap_port is equivalent to the function task_get_special_port with the which_port argument set to TASK_BOOTSTRAP_PORT.

macrotask_get_debug_control_port

#define task_get_debug_control_port(task, port) (task_get_special_port((task), TASK_DEBUG_CONTROL_PORT, (port)))

macrotask_set_bootstrap_port

#define task_set_bootstrap_port(task, port) (task_set_special_port((task), TASK_BOOTSTRAP_PORT, (port)))
GNU Mach reference · 7.2.5 Task Special Ports · © FSF, GFDL
kern_return_t task_set_bootstrap_port(task_t task, mach_port_t bootstrap_port)
The function task_set_bootstrap_port is equivalent to the function task_set_special_port with the which_port argument set to TASK_BOOTSTRAP_PORT.

macrotask_get_task_access_port

#define task_get_task_access_port(task, port) (task_get_special_port((task), TASK_ACCESS_PORT, (port)))

macrotask_set_task_access_port

#define task_set_task_access_port(task, port) (task_set_special_port((task), TASK_ACCESS_PORT, (port)))

macrotask_set_task_debug_control_port

#define task_set_task_debug_control_port(task, port) (task_set_special_port((task), TASK_DEBUG_CONTROL_PORT, (port)))