]>
Commit | Line | Data |
---|---|---|
13fec989 A |
1 | <h2>lock_make_stable</h2> |
2 | <hr> | |
3 | <p> | |
4 | <strong>Function</strong> - Stabilize the state of the specified lock. | |
5 | <h3>SYNOPSIS</h3> | |
6 | <pre> | |
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> | |
10 | </pre> | |
11 | <h3>PARAMETERS</h3> | |
12 | <dl> | |
13 | <p> | |
14 | <dt> <var>lock_set</var> | |
15 | <dd> | |
16 | [in send right] The port naming the lock set which represents the | |
17 | lock. | |
18 | <p> | |
19 | <dt> <var>lock_id</var> | |
20 | <dd> | |
21 | [in scalar] The lock, represented by the lock set, to be stabilized. | |
22 | </dl> | |
23 | <h3>DESCRIPTION</h3> | |
24 | <p> | |
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> | |
28 | <dl> | |
29 | <p> | |
30 | <dt> <strong>KERN_INVALID_ARGUMENT</strong> | |
31 | <dd> | |
32 | The specified lock set is invalid, or the lock id is out of range. | |
33 | <p> | |
34 | <dt> <strong>KERN_INVALID_RIGHT</strong> | |
35 | <dd> | |
36 | The caller does not own the specified lock. | |
37 | <p> | |
38 | <dt> <strong>KERN_SUCCESS</strong> | |
39 | <dd> | |
40 | The lock's state was stabilized. | |
41 | <p> | |
42 | <dt> <strong>KERN_LOCK_SET_DESTROYED</strong> | |
43 | <dd> | |
44 | The specified lock has been destroyed. | |
45 | </dl> | |
46 | <h3>RELATED INFORMATION</h3> | |
47 | <p> | |
48 | Functions: | |
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>. |