OTHERQ

, otherq

Synopsis

Interface Level

Architecture independent level 1 (DDI/DKI).

Parameters

q

Pointer to the queue.

Description

The OTHERQ() function returns a pointer to the other of the two
queue structures that make up a STREAMS module or driver. If q
points to the read queue the write queue will be returned, and
vice versa.

Return Values

The OTHERQ() function returns a pointer to a queue's partner.

Context

The OTHERQ() function can be called from user, interrupt, or kernel context.

Examples

Example 1 Setting Queues

This routine sets the minimum packet size, the maximum packet size, the
high water mark, and the low water mark for the read and
write queues of a given module or driver. It is passed either
one of the queues. This could be used if a module
or driver wished to update its queue parameters dynamically.