OTHERQ(9r)OTHERQ(9r)NAMEOTHERQ - STREAMS: Gets a pointer to a module's other queue
SYNOPSIS
#include <sys/stream.h>
queue_t * OTHERQ(
queue_t *queue );
ARGUMENTS
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 *.
DESCRIPTION
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 argu‐
ment 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.
RETURN VALUES
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)