Back to Darwin Xnu

Task Assign

osfmk/man/task_assign.html

latest1.2 KB
Original Source

task_assign


Function - Assign a task to a processor set.

SYNOPSIS

**kern\_return\_t task\_assign**** (task\_t **task,** processor\_set\_t **processor\_set,** boolean\_t **assign\_threads** );**

PARAMETERS

task[in task send right] The port for the task to be assigned. processor_set[in processor-set-control send right] The control port for the processor set into which the task is to be assigned. assign_threads[in scalar] True if this assignment should apply as well to the threads within the task.

DESCRIPTION

The task_assign function assigns task to the set processor_set. After the assignment is completed, newly created threads within this task will be assigned to this processor set. Any previous assignment of the task is nullified.

If assign_threads is TRUE , existing threads within the task will also be assigned to the processor set.

RETURN VALUES

Only generic errors apply.

Functions: task_assign_default, task_get_assignment, processor_set_create, processor_set_info, thread_assign.