Go to the first, previous, next, last section, table of contents.
processor_set_tasks
gets send rights to the kernel
port for each task currently assigned to processor_set.
task_list is an array that is created as a result of this call.
The caller may wish to vm_deallocate
this array when the data is
no longer needed. task_count is set to the number of tasks in the
task_list.
This function returns KERN_SUCCESS
if the call succeeded and
KERN_INVALID_ARGUMENT
if processor_set is not a processor
set.
processor_set_thread
gets send rights to the kernel
port for each thread currently assigned to processor_set.
thread_list is an array that is created as a result of this call.
The caller may wish to vm_deallocate
this array when the data is
no longer needed. thread_count is set to the number of threads in
the thread_list.
This function returns KERN_SUCCESS
if the call succeeded and
KERN_INVALID_ARGUMENT
if processor_set is not a processor
set.
task_assign
assigns task the set
processor_set. This assignment is for the purposes of determining
the initial assignment of newly created threads in task. Any previous
assignment of the task is nullified. Existing threads within the task
are also reassigned if assign_threads is TRUE
. They are
not affected if it is FALSE
.
This function returns KERN_SUCCESS
if the assignment has been
performed and KERN_INVALID_ARGUMENT
if task is not a task,
or processor_set is not a processor set on the same host as
task.
task_assign_default
is a variant of
task_assign
that assigns the task to the default processor set on
that task's host. This variant exists because the control port for the
default processor set is privileged and not ususally available to users.
This function returns KERN_SUCCESS
if the assignment has been
performed and KERN_INVALID_ARGUMENT
if task is not a task.
task_get_assignment
returns the name of the
processor set to which the thread is currently assigned in
processor_set. This port can only be used to obtain information
about the processor set.
This function returns KERN_SUCCESS
if the assignment has been
performed, KERN_INVALID_ADDRESS
if processor_set points to
inaccessible memory, and KERN_INVALID_ARGUMENT
if task is
not a task.
thread_assign
assigns thread the set
processor_set. After the assignment is completed, the thread only
executes on processors assigned to the designated processor set. If
there are no such processors, then the thread is unable to execute. Any
previous assignment of the thread is nullified. Unix system call
compatibility code may temporarily force threads to execute on the
master processor.
This function returns KERN_SUCCESS
if the assignment has been
performed and KERN_INVALID_ARGUMENT
if thread is not a
thread, or processor_set is not a processor set on the same host
as thread.
thread_assign_default
is a variant of
thread_assign
that assigns the thread to the default processor
set on that thread's host. This variant exists because the control port
for the default processor set is privileged and not ususally available
to users.
This function returns KERN_SUCCESS
if the assignment has been
performed and KERN_INVALID_ARGUMENT
if thread is not a
thread.
thread_get_assignment
returns the name of the
processor set to which the thread is currently assigned in
processor_set. This port can only be used to obtain information
about the processor set.
This function returns KERN_SUCCESS
if the assignment has been
performed, KERN_INVALID_ADDRESS
if processor_set points to
inaccessible memory, and KERN_INVALID_ARGUMENT
if thread is
not a thread.
Go to the first, previous, next, last section, table of contents.