xref: /xnu-11417.121.6/osfmk/man/processor_set_threads.html (revision a1e26a70f38d1d7daa7b49b258e2f8538ad81650)
1*a1e26a70SApple OSS Distributions<h2>processor_set_threads</h2>
2*a1e26a70SApple OSS Distributions<hr>
3*a1e26a70SApple OSS Distributions<p>
4*a1e26a70SApple OSS Distributions<strong>Function</strong> - Return a list of pointers to all threads currently assigned to the target processor set.
5*a1e26a70SApple OSS Distributions<h3>SYNOPSIS</h3>
6*a1e26a70SApple OSS Distributions<pre>
7*a1e26a70SApple OSS Distributions<strong>kern_return_t	processor_set_threads</strong>
8*a1e26a70SApple OSS Distributions		<strong>(processor_set_t</strong>	<var>processor_set</var>,
9*a1e26a70SApple OSS Distributions		<strong>thread_port_array_t</strong>	<var>thread_list</var>,
10*a1e26a70SApple OSS Distributions		<strong>mach_msg_type_number_t*</strong>	<var>thread_count</var><strong>);</strong>
11*a1e26a70SApple OSS Distributions</pre>
12*a1e26a70SApple OSS Distributions<h3>PARAMETERS</h3>
13*a1e26a70SApple OSS Distributions<dl>
14*a1e26a70SApple OSS Distributions<dt> <var>processor_set</var>
15*a1e26a70SApple OSS Distributions<dd>
16*a1e26a70SApple OSS Distributions[in processor-set-control send right]
17*a1e26a70SApple OSS DistributionsA processor set control port for
18*a1e26a70SApple OSS Distributionswhich information is desired.
19*a1e26a70SApple OSS Distributions<dt> <var>thread_list</var>
20*a1e26a70SApple OSS Distributions<dd>
21*a1e26a70SApple OSS Distributions[out pointer to dynamic array of thread send rights]
22*a1e26a70SApple OSS DistributionsThe returned set of
23*a1e26a70SApple OSS Distributionsports naming the threads currently assigned to <var>processor_set</var>.
24*a1e26a70SApple OSS Distributions<dt> <var>thread_count</var>
25*a1e26a70SApple OSS Distributions<dd>
26*a1e26a70SApple OSS Distributions[out scalar]
27*a1e26a70SApple OSS DistributionsThe number of threads returned in <var>thread_list</var>.
28*a1e26a70SApple OSS Distributions</dl>
29*a1e26a70SApple OSS Distributions<h3>DESCRIPTION</h3>
30*a1e26a70SApple OSS Distributions<p>
31*a1e26a70SApple OSS DistributionsThe <strong>processor_set_threads</strong> function returns send rights
32*a1e26a70SApple OSS Distributionsto the kernel ports for each thread currently assigned to <var>processor_set</var>.
33*a1e26a70SApple OSS Distributions<h3>RETURN VALUES</h3>
34*a1e26a70SApple OSS Distributions<p>
35*a1e26a70SApple OSS DistributionsOnly generic errors apply.
36*a1e26a70SApple OSS Distributions<h3>RELATED INFORMATION</h3>
37*a1e26a70SApple OSS Distributions<p>
38*a1e26a70SApple OSS DistributionsFunctions:
39*a1e26a70SApple OSS Distributions<a href="processor_set_tasks.html">processor_set_tasks</a>,
40*a1e26a70SApple OSS Distributions<a href="task_assign.html">task_assign</a>,
41*a1e26a70SApple OSS Distributions<a href="thread_assign.html">thread_assign</a>.
42