'\"macro stdmacro
.if n .pH ddi_dki.RD @(#)RD	40.5 of 10/10/89
.\" Copyright 1989 AT&T
.de IX
.ie '\\n(.z'' .tm .Index: \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9	\\n%
.el \\!.IX \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9
..
.nr X
.if \nX=0 .ds x} RD D3DK "STREAMS" "DDI/DKI" "\&"
.if \nX=1 .ds x} RD D3DK "STREAMS" "DDI/DKI"
.if \nX=2 .ds x} RD D3DK "" "\&"
.if \nX=3 .ds x} RD "" "" "\&"
.TH \*(x}
.IX "\f4RD\fP(D3DK)"
.SH NAME 
\f4RD\f1 \- get pointer to the read queue
.SH SYNOPSIS 
.nf
.na
\f4#include <sys/stream.h>
#include <sys/ddi.h>
.sp 0.5
queue_t RD(queue_t *\f2q\f4);\f1
.ad
.fi
.SH ARGUMENT 
.RS 0n
.IP "\f2q\f1" 10n
Pointer to the \f2write\f1 queue whose \f2read\f1 queue is to be
returned.
.RE
.SH DESCRIPTION 
The \f4RD\f1 function accepts a \f2write\f1 queue pointer as an argument and
returns a pointer to the \f2read\f1 queue of the same module.
.P
\f3CAUTION:\f1
Make sure the argument to this function is a pointer to
a \f2write\f1 queue.  \f4RD\f1 will not check for queue type, and a
system panic could result if it is not the right type.
.SH "RETURN VALUE"
The pointer to the \f2read\f1 queue.
.SH LEVEL
Base or Interrupt
.SH "SEE ALSO" 
\f2BCI Driver Development Guide\f1, Chapter 7, ``STREAMS''
.P
.na
\f4WR\f1(D3DK)
.ad
.SH EXAMPLE 
See the \f4qreply\f1(D3DK) function page for an example of \f4RD\f1.
