Next: Tasks and Threads on Sets, Previous: Processor Set Creation, Up: Processor Set Interface
The function
processor_set_destroy
destroys the specified processor set. Any assigned processors, tasks, or threads are reassigned to the default set. The object port for the processor set is required (not the name port). The default processor set cannot be destroyed.This function returns
KERN_SUCCESS
if the set was destroyed,KERN_FAILURE
if an attempt was made to destroy the default processor set, or the operating system does not support processor allocation, andKERN_INVALID_ARGUMENT
if processor_set is not a valid processor set control port.