.TH LOCK_DEALLOC() "" "" "DDI/DKI Kernel Routine"
.PC "Deallocate a basic lock"
.B "#include <sys/ksynch.h>"
\fBvoid LOCK_DEALLOC(\fIlock\^\fB)\fR
\fBlock_t *\fIlock\^\fB;\fR
.PP
.B LOCK_DEALLOC()
deallocates the lock to which
.I lock
points.
.SH "See Also"
.B
DDI/DKI kernel routines,
LOCK(),
LOCK_ALLOC(),
TRYLOCK(),
UNLOCK()
.R
.SH Notes
.B LOCK_DEALLOC()
has base or interrupt level.
It does not sleep.
.PP
Do not attempt to deallocate a lock that is locked or is awaited.
Doing so triggers undefined behavior.
.PP
A driver can hold a
driver-defined basic lock (other than the one being deallocated),
read/write lock, or sleep lock across a call to this function.
