]> git.saurik.com Git - apple/xnu.git/blame - osfmk/man/task_get_assignment.html
xnu-792.6.70.tar.gz
[apple/xnu.git] / osfmk / man / task_get_assignment.html
CommitLineData
9bccf70c 1<h2>task_get_assignment</h2>\r<hr>\r<p>\r<strong>Function</strong> - Return the processor set to which a task is assigned.\r<h3>SYNOPSIS</h3>\r<pre>\r<strong>kern_return_t task_get_assignment</strong>\r <strong>(task_t</strong> <var>task</var>,\r <strong>processor_set_name_t</strong> <var>processor_set</var><strong>);</strong>\r</pre>\r<h3>PARAMETERS</h3>\r<dl>\r<dt> <var>task</var> \r<dd>\r[in task send right]\rThe port for the task whose assignment is desired.\r<dt> <var>processor_set</var> \r<dd>\r[out processor-set-name send right]\rThe name port for the processor \rset into which the task is assigned.\r</dl>\r<h3>DESCRIPTION</h3>\r<p>\rThe <strong>task_get_assignment</strong> function returns the name port\rto the processor set to \rwhich <var>task</var> is currently assigned. This port can only be used to obtain\rinformation about the processor set.\r<h3>RETURN VALUES</h3>\r<p>\rOnly generic errors apply.\r<h3>RELATED INFORMATION</h3>\r<p>\rFunctions:\r<a href="task_assign.html"><strong>task_assign</strong></a>,\r<a href="task_assign_default.html"><strong>task_assign_default</strong></a>,\r<a href="processor_set_create.html"><strong>processor_set_create</strong></a>,\r<a href="processor_set_info.html"><strong>processor_set_info</strong></a>,\r<a href="thread_assign.html"><strong>thread_assign</strong></a>.\r