osfmk/man/lock_make_stable.html
Function - Stabilize the state of the specified lock.
**kern\_return\_t lock\_make\_stable**** (lock\_set\_t **lock\_set,** int **lock\_id** );**
lock_set[in send right] The port naming the lock set which represents the lock.
lock_id[in scalar] The lock, represented by the lock set, to be stabilized.
The lock_make_stable function clears the specified lock's unstable state, making the lock's state stable again.
KERN_INVALID_ARGUMENT The specified lock set is invalid, or the lock id is out of range.
KERN_INVALID_RIGHT The caller does not own the specified lock.
KERN_SUCCESS The lock's state was stabilized.
KERN_LOCK_SET_DESTROYED The specified lock has been destroyed.
Functions: lock_acquire, lock_release, lock_try, lock_handoff, lock_handoff_accept, lock_set_create, lock_set_destroy.