Function - Set the indicated special port.
kern_return_t task_set_special_port
(task_t task,
int which_port,
mach_port_t special_port);
Macro forms:
kern_return_t task_set_bootstrap_port
(task_t task,
int which_port,
mach_port_t special_port);
kern_return_t task_set_kernel_port
(task_t task,
int which_port,
mach_port_t special_port);
kern_return_t task_set_host_name_port
(task_t task,
mach_port_t special_port);
The task_set_special_port function sets a special port belonging to task.
The current implementation does not support the TASK_HOST_NAME_PORT features associated with this interface.
Only generic errors apply.
Functions: task_create, task_get_special_port, mach_task_self, thread_get_special_port, thread_set_special_port, mach_host_self.