Function - Set the size of the target task's port name space table.
kern_return_t task_set_port_space
(task_t task,
int table_entries);
The task_set_port_space function preallocates the specified number of entries in the specified task's IPC name space.
Functions: mach_port_allocate.