.TH OTHERQ() "" "" "DDI/DKI Kernel Routine"
.PC "Get the other queue"
.B "#include <sys/ddi.k>"
.B "#include <sys/stream.h>"
\fBqueue_t * OTHERQ(\fIqueue\^\fB)\fR
\fBqueue_t *\fIqueue\^\fB;\fR
.PP
.B OTHERQ()
returns the address of
.IR queue 's
partner queue.
If
.I queue
points to the write queue,
.B OTHERQ()
returns a pointer to the read queue, and vice versa.
.SH "See Also"
.B
DDI/DKI kernel routines,
RD(),
WR()
.R
.SH Notes
.B OTHERQ()
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
across a call to this function.
