Query: getq
OS: osf1
Section: 9r
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
getq(9r) getq(9r)NAMEgetq - STREAMS: Gets a message from the front of the queueSYNOPSIS#include <sys/stream.h> MBLKP getq( queue_t *message_queue );ARGUMENTSSpecifies a pointer to the message queue from which the message is to be retrieved. The typedef queue_t is an alternate name for struct queue_entry *.DESCRIPTIONThe getq interface is used by a service interface to retrieve its enqueued messages. A module or driver may include a service interface to process enqueued messages. Once the STREAMS scheduler calls this service it must process all enqueued messages, unless prevented by flow control. The getq interface gets the next available message from the top of the queue pointed to by the message_queue argument. You should call getq in a while loop that should be exited only when there are no more mes- sages.RETURN VALUESIf there is a message to retrieve, getq returns a pointer to it. If no message is queued, getq returns a NULL pointer.SEE ALSOKernel Interfaces: bcanput(9r), canput(9r), putbq(9r), putq(9r), qenable(9r) Programmer's Guide: STREAMS getq(9r)
Related Man Pages |
---|
getq(9f) - sunos |
getq(9f) - php |
getq(9f) - redhat |
getq(9f) - suse |
getq(9f) - xfree86 |
Similar Topics in the Unix Linux Community |
---|
Script to automate a service message |