xref: /xnu-10063.141.1/osfmk/man/processor_control.html (revision d8b80295118ef25ac3a784134bcf95cd8e88109f)
1*d8b80295SApple OSS Distributions<h2>processor_control</h2>
2*d8b80295SApple OSS Distributions<hr>
3*d8b80295SApple OSS Distributions<p>
4*d8b80295SApple OSS Distributions<strong>Function</strong> - Perform caller-specified operation on target processor. (Protected Interface.)
5*d8b80295SApple OSS Distributions<h3>SYNOPSIS</h3>
6*d8b80295SApple OSS Distributions<pre>
7*d8b80295SApple OSS Distributions<strong>kern_return_t	processor_control</strong>
8*d8b80295SApple OSS Distributions		<strong>(processor_t</strong>	<var>processor</var>,
9*d8b80295SApple OSS Distributions		<strong>processor_info_t</strong>	<var>cmd</var>,
10*d8b80295SApple OSS Distributions		<strong>mach_msg_type_number_t*</strong>	<var>count</var><strong>);</strong>
11*d8b80295SApple OSS Distributions</pre>
12*d8b80295SApple OSS Distributions<h3>PARAMETERS</h3>
13*d8b80295SApple OSS Distributions<dl>
14*d8b80295SApple OSS Distributions<dt> <var>processor</var>
15*d8b80295SApple OSS Distributions<dd>
16*d8b80295SApple OSS Distributions[in processor send right]
17*d8b80295SApple OSS DistributionsThe processor to be controlled.
18*d8b80295SApple OSS Distributions<dt> <var>cmd</var>
19*d8b80295SApple OSS Distributions<dd>
20*d8b80295SApple OSS Distributions[pointer to in array of natural-sized units]
21*d8b80295SApple OSS DistributionsAn array containing the
22*d8b80295SApple OSS Distributionscommand to be applied to the processor.
23*d8b80295SApple OSS Distributions<dt> <var>count</var>
24*d8b80295SApple OSS Distributions<dd>
25*d8b80295SApple OSS Distributions[in scalar]
26*d8b80295SApple OSS DistributionsThe size of the <var>cmd</var> array (in natural-sized units).
27*d8b80295SApple OSS Distributions</dl>
28*d8b80295SApple OSS Distributions<h3>DESCRIPTION</h3>
29*d8b80295SApple OSS Distributions<p>
30*d8b80295SApple OSS DistributionsThe <strong>processor_control</strong> function allows privileged software
31*d8b80295SApple OSS Distributionsto control a
32*d8b80295SApple OSS Distributionsprocessor in a multi-processor that so allows it.  The interpretation
33*d8b80295SApple OSS Distributionsof <var>cmd</var> is machine
34*d8b80295SApple OSS Distributionsdependent.
35*d8b80295SApple OSS Distributions<h3>NOTES</h3>
36*d8b80295SApple OSS Distributions<p>
37*d8b80295SApple OSS DistributionsThese operations are machine dependent.  They may do nothing.
38*d8b80295SApple OSS Distributions<h3>RETURN VALUES</h3>
39*d8b80295SApple OSS Distributions<dl>
40*d8b80295SApple OSS Distributions<dt> <strong>KERN_FAILURE</strong>
41*d8b80295SApple OSS Distributions<dd>
42*d8b80295SApple OSS DistributionsThe operation was not performed.  A likely reason is that it
43*d8b80295SApple OSS Distributionsis not supported on this processor.
44*d8b80295SApple OSS Distributions</dl>
45*d8b80295SApple OSS Distributions<h3>RELATED INFORMATION</h3>
46*d8b80295SApple OSS Distributions<p>
47*d8b80295SApple OSS DistributionsFunctions:
48*d8b80295SApple OSS Distributions<a href="processor_start.html">processor_start</a>,
49*d8b80295SApple OSS Distributions<a href="processor_exit.html">processor_exit</a>,
50*d8b80295SApple OSS Distributions<a href="processor_info.html">processor_info</a>,
51*d8b80295SApple OSS Distributions<a href="host_processors.html">host_processors</a>.
52