Next: , Previous: Processor Set Creation, Up: Processor Set Interface


9.1.4 Processor Set Destruction

— Function: kern_return_t processor_set_destroy (processor_set_t processor_set)

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, and KERN_INVALID_ARGUMENT if processor_set is not a valid processor set control port.