Go to the first, previous, next, last section, table of contents.
thread_get_special_port
returns send rights to one
of a set of special ports for the thread specified by thread.
The possible values for which_port are THREAD_KERNEL_PORT
and THREAD_EXCEPTION_PORT
. A thread also has access to its
task's special ports.
The function returns KERN_SUCCESS
if the port was returned and
KERN_INVALID_ARGUMENT
if thread is not a thread or
which_port is an invalid port selector.
thread_get_kernel_port
is equivalent to the function
thread_get_special_port
with the which_port argument set to
THREAD_KERNEL_PORT
.
thread_get_exception_port
is equivalent to the
function thread_get_special_port
with the which_port
argument set to THREAD_EXCEPTION_PORT
.
thread_set_special_port
sets one of a set of special
ports for the thread specified by thread.
The possible values for which_port are THREAD_KERNEL_PORT
and THREAD_EXCEPTION_PORT
. A thread also has access to its
task's special ports.
The function returns KERN_SUCCESS
if the port was set and
KERN_INVALID_ARGUMENT
if thread is not a thread or
which_port is an invalid port selector.
thread_set_kernel_port
is equivalent to the function
thread_set_special_port
with the which_port argument set to
THREAD_KERNEL_PORT
.
thread_set_exception_port
is equivalent to the
function thread_set_special_port
with the which_port
argument set to THREAD_EXCEPTION_PORT
.
Go to the first, previous, next, last section, table of contents.