DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
SVR5 and SCO OpenServer 5

RD(D3str)


RD -- get a pointer to the read queue

Synopsis

   #include <sys/stream.h>
   #include <sys/ddi.h>
   queue_t *RD(queue_t *q);

Description

The RD function accepts a queue pointer as an argument and returns a pointer to the read queue of the same module or driver.

Arguments


q
Pointer to the queue whose read queue is to be returned.

Return values

The pointer to the read queue.

Usage

Note that when RD is passed a read queue pointer as an argument, it returns a pointer to this read queue.

Context

Base or Interrupt.

Synchronization constraints

Does not block.

Driver-defined basic locks, read/write locks, and sleep locks may be held across calls to this function.

Hardware applicability

All

Version applicability

ddi: 1, 2, 3, 4, 5, 5mp, 6, 6mp, 7, 7mp, 7.1, 7.1mp, 8, 8mp
oddi: 1, 2, 2mp, 3, 3mp, 4, 4mp, 5, 5mp, 6, 6mp

References

OTHERQ(D3str), WR(D3str)

Examples

See the put(D2str) function page for an example of RD.
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005