Index Index for
Section 9
Index Alphabetical
listing for O
Index Bottom of
page

OTHERQ(9r)

NAME

OTHERQ - STREAMS: Gets a pointer to a module's other queue

SYNOPSIS

#include <sys/stream.h> queue_t * OTHERQ( queue_t *queue );

ARGUMENTS

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 *.

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 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.

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.

Index Index for
Section 9
Index Alphabetical
listing for O
Index Top of
page