osfmk/man/processor_set_create.html
Function - Create a new processor set object.
**kern\_return\_t processor\_set\_create**** (host\_t **host\_name,** processor\_set\_t **new\_set,** processor\_set\_name\_t **new\_name** );**
host_name[in host-name send right] The name (or control) port for the host on which the set is to be created. new_set[out processor-set-control send right] Control port used for performing operations on the new set. new_name[out processor-set-name send right] Name port used to identify the new set and obtain information about it.
The processor_set_create function creates a new processor set and returns the two ports associated with it. The port returned in new_set is the control port representing the set. It is used to perform operations such as assigning processors, tasks or threads. The port returned in new_name is the name port which identifies the set, and is used to obtain information about the set.
Only generic values apply.
Functions: processor_set_destroy, processor_set_info, processor_assign, task_assign, thread_assign.