SVR5 and SCO OpenServer 5
get the next message from a queue
mblk_t *getq(queue_t *q);
getq gets the next available message from
the top of the queue pointed to by q.
It handles flow control, restarting I/O that was blocked as needed.
Pointer to the queue from which the message is to be retrieved.
If there is a message to retrieve, getq returns a pointer to it.
If no message is queued, getq returns a NULL pointer.
getq is typically used by service routines [see
to retrieve queued messages.
Base or Interrupt.
Does not block.
Driver-defined basic locks, read/write locks, and sleep locks
may be held across calls to this function.
The caller cannot have the stream frozen
when calling this function.
for an example of getq.
1, 2, 3, 4, 5, 5mp, 6, 6mp, 7, 7mp, 7.1, 7.1mp, 8, 8mp
1, 2, 2mp, 3, 3mp, 4, 4mp, 5, 5mp, 6, 6mp
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005