Function - Set caller-specified special port belonging to the target thread.
kern_return_t thread_set_special_port (thread_act_t thread, int which_port, mach_port_t special_port);
kern_return_t thread_set_kernel_port (thread_act_t thread, mach_port_t special_port);
The thread_set_special_port function sets a special port belonging to thread.
Only generic errors apply.
Functions: mach_thread_self, task_get_special_port, task_set_special_port, thread_create, thread_get_special_port.