SVR5 and SCO OpenServer 5
qsize(D3str)
qsize --
find the number of messages on a queue
Synopsis
#include <sys/stream.h>
#include <sys/ddi.h>
int qsize(queue_t *q);
Description
qsize evaluates the queue pointed to by q
and returns the number of messages it contains.
Arguments
q-
Pointer to the queue to be evaluated.
Return values
If there are no message on the queue, qsize returns 0.
Otherwise, it returns the number of messages on
the queue.
Usage
qreply( )
is typically used to send back a response of the
M_IOCACK(D7str)
or
M_IOCNAK(D7str)
message type to an
M_IOCTL(D7str)
message.
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.
The caller cannot have the stream frozen
[see
freezestr(D3str)]
when calling 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
msgb(D4str),
queue(D4str)
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005