processor_set_createcreates a new processor set on host and returns the two ports associated with it. The port returned in new_set is the actual port representing the set. It is used to perform operations such as assigning processors, tasks, or threads. The port returned in new_name identifies the set, and is used to obtain information about the set.
This function returns
KERN_SUCCESSif the call succeeded,
KERN_INVALID_ARGUMENTif host is not a host,
KERN_INVALID_ADDRESSif new_set or new_name points to inaccessible memory and
KERN_FAILUREis the operating system does not support processor allocation.