osfmk/man/processor_set_tasks.html
Function - Return a list of pointers to all tasks currently assigned to the target processor set.
**kern\_return\_t processor\_set\_tasks**** (processor\_set\_t **processor\_set,** task\_port\_array\_t **task\_list,** mach\_msg\_type\_number\_t\ ***task\_count** );**
processor_set[in processor-set-control send right] A processor set control port for which information is desired. task_list[out pointer to dynamic array of task send rights] The returned set of ports naming the tasks currently assigned to processor_set. task_count[out scalar] The number of tasks returned in task_list.
The processor_set_tasks function returns send rights to the kernel ports for each task currently assigned to processor_set.
Only generic errors apply.
Functions: processor_set_threads, task_assign, thread_assign.