1 <h2>lock_make_stable
</h2>
4 <strong>Function
</strong> - Stabilize the state of the specified lock.
7 <strong>kern_return_t lock_make_stable
</strong>
8 <strong>(lock_set_t
</strong> <var>lock_set
</var>,
9 <strong>int
</strong> <var>lock_id
</var><strong>);
</strong>
14 <dt> <var>lock_set
</var>
16 [in send right] The port naming the lock set which represents the
19 <dt> <var>lock_id
</var>
21 [in scalar] The lock, represented by the lock set, to be stabilized.
25 The
<strong>lock_make_stable
</strong> function clears the specified lock's unstable
26 state, making the lock's state stable again.
27 <h3>RETURN VALUES
</h3>
30 <dt> <strong>KERN_INVALID_ARGUMENT
</strong>
32 The specified lock set is invalid, or the lock id is out of range.
34 <dt> <strong>KERN_INVALID_RIGHT
</strong>
36 The caller does not own the specified lock.
38 <dt> <strong>KERN_SUCCESS
</strong>
40 The lock's state was stabilized.
42 <dt> <strong>KERN_LOCK_SET_DESTROYED
</strong>
44 The specified lock has been destroyed.
46 <h3>RELATED INFORMATION
</h3>
49 <a href=
"lock_acquire.html"><strong>lock_acquire
</strong></a>,
50 <a href=
"lock_release.html"><strong>lock_release
</strong></a>,
51 <a href=
"lock_try.html"><strong>lock_try
</strong></a>,
52 <a href=
"lock_handoff.html"><strong>lock_handoff
</strong></a>,
53 <a href=
"lock_handoff_accept.html"><strong>lock_handoff_accept
</strong></a>,
54 <a href=
"lock_set_create.html"><strong>lock_set_create
</strong></a>,
55 <a href=
"lock_set_destroy.html"><strong>lock_set_destroy
</strong></a>.