]> git.saurik.com Git - apple/xnu.git/blob - osfmk/man/task_set_port_space.html
b1408ccfeb6f5ffff1b2141e94eba5044fb71a00
[apple/xnu.git] / osfmk / man / task_set_port_space.html
1 <h2>task_set_port_space</h2> <hr> <p> <strong>Function</strong> - Set the size of the target task's port name space table. <h3>SYNOPSIS</h3> <pre> <strong>kern_return_t task_set_port_space</strong> <strong>(task_t</strong> <var>task</var>, <strong>int</strong> <var>table_entries</var><strong>);</strong> </pre> <h3>PARAMETERS</h3> <dl> <p> <dt> <var>task</var> <dd> [in send right] The port referencing the task whose port name space is to be set. <p> <dt> <var>table_entries</var> <dd> [in scalar] The number of entries in the port name space table. </dl> <h3>DESCRIPTION</h3> <p> The <strong>task_set_port_space</strong> function preallocates the specified number of entries in the specified task's IPC name space. <h3>RETURN VALUES</h3> <dl> <p> <dt> <strong>KERN_NO_SPACE</strong> <dd> The requested table size exceeds the maximum allowable table size. </dl> <h3>RELATED INFORMATION</h3> <p> Functions: <a href="mach_port_allocate.html"><strong>mach_port_allocate</strong></a>.