backq - STREAMS: Gets a pointer to the previous queue
#include <sys/stream.h>
queue_t * backq(
queue_t *current_queue );
Specifies the pointer to the current queue. The typedef
queue_t is an alternate name for struct queue_entry *.
The backq interface returns a pointer to the queue preceding
the current queue (the current_queue argument). If
the current queue is a read queue, backq returns a pointer
to the queue downstream from the current queue, unless the
current queue is the stream end. If the current queue is a
write queue, backq returns a pointer to the queue upstream
from the current queue, unless the current queue is the
stream head.
Upon successful completion, the backq interface returns a
pointer to the queue preceding the current queue. Otherwise,
it returns NULL.
Programmer's Guide: STREAMS
backq(9r)
[ Back ] |