.TH SLEEP_DEALLOC() "" "" "DDI/DKI Kernel Routine"
.PC "Deallocate a sleep lock"
.B "#include <sys/ksynch.h>"
\fBvoid SLEEP_DEALLOC(\fIlock\^\fB)\fR
\fBsleep_t *\fIlock\^\fB;\fR
.PP
.B SLEEP_DEALLOC()
deallocates the sleep lock
.IR lock .
If
.I lock
is being held or awaited, attempting to deallocate triggers behavior
that is undefined \(em and probably unwelcome.
.SH "See Also"
.B
DDI/DKI kernel routines
.R
.SH Notes
.B SLEEP_DEALLOC()
has base or interrupt level.
It does not sleep.
.PP
A driver can hold a
driver-defined basic lock, read/write lock, or sleep lock (other
than the one being deallocated) across a call to this function.

