]>
Commit | Line | Data |
---|---|---|
9bccf70c | 1 | <h2>mach_ports_lookup</h2>\r<hr>\r<p>\r<strong>Function</strong> - Provide caller with an array of the target task's well-known ports.\r<h3>SYNOPSIS</h3>\r<pre>\r<strong>kern_return_t mach_ports_lookup</strong>\r <strong>(task_t</strong> <var>target_task</var>,\r <strong>mach_port_array_t</strong> <var>init_port_set</var>,\r <strong>mach_msg_type_number_t</strong> <var>init_port_count</var><strong>);</strong>\r</pre>\r<h3>PARAMETERS</h3>\r<dl>\r<p>\r<dt> <var>target_task</var> \r<dd>\r[in task send right]\rThe task whose currently registered ports are to be \rreturned.\r<p>\r<dt> <var>init_port_set</var> \r<dd>\r[out pointer to dynamic array of registered send rights]\rThe returned\rarray of ports.\r<p>\r<dt> <var>init_port_count</var> \r<dd>\r[out scalar]\rThe number of returned port rights.\r</dl>\r<h3>DESCRIPTION</h3>\r<p>\rThe <strong>mach_ports_lookup</strong> function returns an array of\rthe well-known system \rports that are currently registered for the specified task. \rNote that the task holds \ronly send rights for the ports.\r<p>\rRegistered ports are those ports that are used by the run-time\rsystem to initialize a task. To register system ports for a task, \ruse the <strong>mach_ports_register</strong> function.\r<h3>RETURN VALUES</h3>\r<p>\rOnly generic errors apply.\r<h3>RELATED INFORMATION</h3>\r<p>\rFunctions:\r<a href="mach_ports_register.html"><strong>mach_ports_register</strong></a>.\r |