RD(D3DK) —
.IX \f4RD\fP(D3DK)
NAME
RD − get a pointer to the read queue
SYNOPSIS
#include <sys/stream.h>
#include <sys/ddi.h>
queue_t ∗RD(queue_t ∗q);
ARGUMENTS
qPointer to the queue whose read queue is to be returned.
DESCRIPTION
The RD function accepts a queue pointer as an argument and returns a pointer to the read queue of the same module or driver.
RETURN VALUE
The pointer to the read queue.
LEVEL
Base or Interrupt.
NOTES
Does not sleep.
Driver-defined basic locks, read/write locks, and sleep locks may be held across calls to this function.
SEE ALSO
OTHERQ(D3DK), WR(D3DK)
EXAMPLE
See the put(D2DK) function page for an example of RD.
DDI/DKI — STREAMS