Returns the pointer to the mate queue.
#define OTHERQ( q) ((q)->flag&QREADER? (q)+1: (q)-1)
The OTHERQ utility returns a pointer to the mate queue of the q parameter.
This utility is part of STREAMS Kernel Extensions.
Item | Description |
---|---|
q | Specifies that queue whose mate is to be returned. |
If the q parameter specifies the read queue for the module, the OTHERQ utility returns a pointer to the module's write queue. If the q parameter specifies the write queue for the module, this utility returns a pointer to the read queue.