Function - Return the processor set to which a task is assigned.
kern_return_t task_get_assignment (task_t task, processor_set_name_t processor_set);
The task_get_assignment function returns the name port to the processor set to which task is currently assigned. This port can only be used to obtain information about the processor set.
Only generic errors apply.
Functions: task_assign, task_assign_default, processor_set_create, processor_set_info, thread_assign.