4 <strong>Function
</strong> - Mark the thread as privileged with respect to kernel resources.
7 <strong>kern_return_t thread_wire
</strong>
8 <strong>(host_priv_t
</strong> <var>host_priv
</var>,
9 <strong>thread_act_t
</strong> <var>thread
</var>,
10 <strong>boolean_t
</strong> <var>wired
</var><strong>);
</strong>
15 <dt> <var>host_priv
</var>
17 [in host-control send right]
18 The privileged control port for the host on
19 which the thread executes.
21 <dt> <var>thread
</var>
23 [in thread send right]
24 The thread to be wired.
29 <strong>TRUE
</strong> if the thread is to be wired.
33 The
<strong>thread_wire
</strong> function marks the thread as "wired".
35 always eligible to be scheduled and can consume physical memory even when
36 free memory is scarce. This property should be assigned to threads in the
37 default page-out path. Threads not in the default page-out path
39 this property to prevent the kernel's free list of pages from being exhausted.
40 <h3>RETURN VALUES
</h3>
43 <dt> <strong>KERN_INVALID_ARGUMENT
</strong>
45 <var>thread
</var> is not a thread port.
47 <var>host_priv
</var> is not the control port for the host on which
<var>thread
</var>
50 <h3>RELATED INFORMATION
</h3>
53 <a href=
"vm_wire.html"><strong>vm_wire
</strong></a>.