getq man page on IRIX

Man page or keyword search:  
man Server   31559 pages
apropos Keyword Search (all sections)
Output format
IRIX logo
[printable version]



getq(D3)							      getq(D3)

NAME
     getq - get the next message from a queue

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

   Arguments
     q	       Pointer to the queue from which the message is to be retrieved.

DESCRIPTION
     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.

   Return Values
     If there is a message to retrieve, getq returns a pointer to it.  If no
     message is queued, getq returns a NULL pointer.

USAGE
     getq is typically used by service routines [see srv(D2)] to retrieve
     queued messages.

   Level
     Base or Interrupt.

   Synchronization Constraints
     Does not sleep.

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

   Examples
     See srv(D2) for an example of getq.

REFERENCES
     bcanput(D3), canput(D3), putbq(D3), putq(D3), qenable(D3), rmvq(D3),
     srv(D2)

									Page 1

[top]

List of man pages available for IRIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net