xref: /xnu-8796.121.2/osfmk/man/task_get_assignment.html (revision c54f35ca767986246321eb901baf8f5ff7923f6a)
1*c54f35caSApple OSS Distributions<h2>task_get_assignment</h2>
2*c54f35caSApple OSS Distributions<hr>
3*c54f35caSApple OSS Distributions<p>
4*c54f35caSApple OSS Distributions<strong>Function</strong> - Return the processor set to which a task is assigned.
5*c54f35caSApple OSS Distributions<h3>SYNOPSIS</h3>
6*c54f35caSApple OSS Distributions<pre>
7*c54f35caSApple OSS Distributions<strong>kern_return_t   task_get_assignment</strong>
8*c54f35caSApple OSS Distributions                <strong>(task_t</strong>                                    <var>task</var>,
9*c54f35caSApple OSS Distributions                 <strong>processor_set_name_t</strong>             <var>processor_set</var><strong>);</strong>
10*c54f35caSApple OSS Distributions</pre>
11*c54f35caSApple OSS Distributions<h3>PARAMETERS</h3>
12*c54f35caSApple OSS Distributions<dl>
13*c54f35caSApple OSS Distributions<dt> <var>task</var>
14*c54f35caSApple OSS Distributions<dd>
15*c54f35caSApple OSS Distributions[in task send right]
16*c54f35caSApple OSS DistributionsThe port for the task whose assignment is desired.
17*c54f35caSApple OSS Distributions<dt> <var>processor_set</var>
18*c54f35caSApple OSS Distributions<dd>
19*c54f35caSApple OSS Distributions[out processor-set-name send right]
20*c54f35caSApple OSS DistributionsThe name port for the processor
21*c54f35caSApple OSS Distributionsset into which the task is assigned.
22*c54f35caSApple OSS Distributions</dl>
23*c54f35caSApple OSS Distributions<h3>DESCRIPTION</h3>
24*c54f35caSApple OSS Distributions<p>
25*c54f35caSApple OSS DistributionsThe <strong>task_get_assignment</strong> function returns the name port
26*c54f35caSApple OSS Distributionsto the processor set to
27*c54f35caSApple OSS Distributionswhich <var>task</var> is currently assigned.  This port can only be used to obtain
28*c54f35caSApple OSS Distributionsinformation about the processor set.
29*c54f35caSApple OSS Distributions<h3>RETURN VALUES</h3>
30*c54f35caSApple OSS Distributions<p>
31*c54f35caSApple OSS DistributionsOnly generic errors apply.
32*c54f35caSApple OSS Distributions<h3>RELATED INFORMATION</h3>
33*c54f35caSApple OSS Distributions<p>
34*c54f35caSApple OSS DistributionsFunctions:
35*c54f35caSApple OSS Distributions<a href="task_assign.html"><strong>task_assign</strong></a>,
36*c54f35caSApple OSS Distributions<a href="task_assign_default.html"><strong>task_assign_default</strong></a>,
37*c54f35caSApple OSS Distributions<a href="processor_set_create.html"><strong>processor_set_create</strong></a>,
38*c54f35caSApple OSS Distributions<a href="processor_set_info.html"><strong>processor_set_info</strong></a>,
39*c54f35caSApple OSS Distributions<a href="thread_assign.html"><strong>thread_assign</strong></a>.
40