NAME
port_set_deallocate - destroys a port set

SYNOPSIS
#include <mach.h>

kern_return_t port_set_deallocate(task, set_name)
task_t task;
port_set_name_t set_name;

ARGUMENTS
task The task owning the port set to be destroyed.

set_name task’s name for the doomed port set.

DESCRIPTION
port_set_deallocate requests that the target task’s port set be
destroyed.

If the port set is non-empty, any members are first removed.

DIAGNOSTICS
KERN_SUCCESS The call succeeded.

KERN_FAILURE set_name is task’s port set used for
implementing the obsolete port_enable
and port_disable calls.

KERN_INVALID_ARGUMENT task was invalid or set_name does not
name a valid port set.

SEE ALSO
port_set_allocate(2)