STREAMS-UX Programmer's Guide (February 2007)

STREAMS Utilities Supported by HP-UX
Appendix B
206
NAME
RD () – get a pointer to the read queue.
SYNOPSIS
#include <sys/stream.h>
queue_t *RD(queue_t *q);
PARAMETERS
q
Pointer to the queue whose read queue is to be returned.
DESCRIPTION
The RD() macro accepts a queue pointer,
q
, as argument and returns a pointer to the read queue of the same
module.
RETURN VALUES
The pointer to the read queue.
CONSTRAINTS
RD() can be called from thread or interrupt context. Spinlocks can be held across calls to this function.