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