STREAMS-UX Programmer's Guide (February 2007)
STREAMS Utilities Supported by HP-UX
Appendix B
236
NAME
WR () – Get pointer to the write queue.
SYNOPSIS
#include <sys/stream.h>
queue_t *WR(queue_t *q);
PARAMETERS
q
Pointer to the queue whose write queue is to be returned.
DESCRIPTION
The macro WR() accepts a queue pointer as an argument and returns a pointer to the write queue of the same
module.
RETURN VALUES
The pointer to the write queue.
CONSTRAINTS
WR() can be called from thread or interrupt context. Spinlocks can be held across the calls to WR().