1 <h2>processor_assign
</h2>
4 <strong>Function
</strong> - Assign a processor to a processor set.
7 <strong>kern_return_t processor_assign
</strong>
8 <strong>(processor_t
</strong> <var>processor
</var>,
9 <strong>processor_set_t
</strong> <var>new_set
</var>,
10 <strong>boolean_t
</strong> <var>wait
</var><strong>);
</strong>
14 <dt> <var>processor
</var>
16 [in processor send right]
17 The processor to be assigned.
18 <dt> <var>new_set
</var>
20 [in processor-set-control send right]
21 The control port for the processor
22 set into which the processor is to be assigned.
26 True if the call should wait for the completion of the
31 The
<strong>processor_assign
</strong> function assigns
<var>processor
</var> to
32 the set
<var>new_set
</var>. After the
33 assignment is completed, the processor only executes threads that are assigned
34 to that processor set. Any previous assignment of the processor
36 master processor cannot be re-assigned.
38 The
<var>wait
</var> argument indicates whether the
39 caller should wait for the assignment
40 to be completed or should return immediately. Dedicated kernel threads are
41 used to perform processor assignment, so setting
<var>wait
</var> to
<strong>FALSE
</strong> allows
42 assignment requests to be queued and performed more quickly, especially
44 more than one dedicated internal thread for processor assignment.
46 All processors take clock interrupts at all times. Redirection of other device
47 interrupts away from processors assigned to other than the default
50 <h3>RETURN VALUES
</h3>
52 Only generic errors apply.
53 <h3>RELATED INFORMATION
</h3>
56 <a href=
"processor_set_create.html">processor_set_create
</a>,
57 <a href=
"processor_set_info.html">processor_set_info
</a>,
58 <a href=
"task_assign.html">task_assign
</a>,
59 <a href=
"thread_assign.html">thread_assign
</a>.