OTHERQ - STREAMS: Gets a pointer to a module's other queue
#include <sys/stream.h>
queue_t * OTHERQ(
queue_t *queue );
Specifies the pointer to one of the two queues that make
up a STREAMS module or driver. The typedef queue_t is an
alternate name for struct queue_entry *.
The OTHERQ interface returns a pointer to the other of the
two queue structures that make up a STREAMS module or
driver. If the queue argument points to the read queue,
the OTHERQ interface returns the write queue. If the
queue argument points to the write queue, the OTHERQ
interface returns the read queue.
Upon successful completion, the OTHERQ interface returns a
pointer to the other of the two queue structures that make
up a STREAMS module or driver.
OTHERQ(9r)
[ Back ] |