_spin_unlock(3synch)
_spin_unlock --
unlock a spin lock
Synopsis
cc [options] -Kthread file
void _spin_unlock(spin_t *lock);
Description
_spin_unlock unlocks the spin lock pointed to by lock.
If one or more threads are waiting for the lock
when _spin_unlock is called,
one of the waiting threads will acquire the lock.
Parameters
- lock
-
pointer to lock to be unlocked
Usage
Spin locks acquired with _spin_lock(3synch)
and _spin_trylock(3synch)
should be released with _spin_unlock(3synch).
Return values
_spin_unlock does not return a value.
Errors
None
References
Intro(3synch),
_spin(3synch),
_spin_destroy(3synch),
_spin_init(3synch),
_spin_lock(3synch),
_spin_trylock(3synch)
30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.