RD(D3) RD(D3)
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
q Pointer 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 Values
The pointer to the read queue.
USAGE
Note that when RD is passed a read queue pointer as an
argument, it returns a pointer to this read queue.
Level
Base or Interrupt.
Synchronization Constraints
Does not sleep.
Driver-defined basic locks, read/write locks, and sleep locks
may be held across calls to this function.
Examples
See the put(D2) function page for an example of RD.
REFERENCES
OTHERQ(D3), WR(D3)
NOTICES
Portability
All processors
Applicability
ddi: 1, 2, 3, 4, 5, 5mp, 6, 6mp, 7, 7mp
Copyright 1994 Novell, Inc. Page 1