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

