[ Previous | Next | Contents | Glossary | Home | Search ]
AIX Version 4.3 Communications Technical Reference, Volume 2

OTHERQ Utility

Purpose

Returns the pointer to the mate queue.

Syntax

#define OTHERQ(q) ((q)->flag&QREADER? (q)+1: (q)-1)

Description

The OTHERQ utility returns a pointer to the mate queue of the q parameter.

Parameters

q Specifies that queue whose mate is to be returned.

Return Values

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.

Implementation Specifics

This utility is part of STREAMS Kernel Extensions.

Related Information

The RD utility, WR utility.

List of Streams Programming References and Understanding STREAMS Messages in AIX Version 4.3 Communications Programming Concepts.


[ Previous | Next | Contents | Glossary | Home | Search ]