processor_set_destroydestroys 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_SUCCESSif the set was destroyed,
KERN_FAILUREif an attempt was made to destroy the default processor set, or the operating system does not support processor allocation, and
KERN_INVALID_ARGUMENTif processor_set is not a valid processor set control port.