qsize(D3)

qsize - find the number of messages on a queue

As shipped in IRIX 6.5. First release of IRIX 6.5.

NAME
     qsize - find the number of messages on a queue

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

   Arguments
     q         Pointer to the queue to be evaluated.

DESCRIPTION
     qsize evaluates the queue pointed to by q and returns the number of
     messages it contains.

   Return Values
     If there are no message on the queue, qsize returns 0.  Otherwise, it
     returns the number of messages on the queue.

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

REFERENCES
     msgb(D4), queue(D4)