Sun Microsystems, Inc.
spacerspacer
spacer   www.sun.com docs.sun.com | | |  
spacer
black dot
   
A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z
    
 
Kernel Functions for Driversqsize(9F)


NAME

 qsize - find the number of messages on a queue

SYNOPSIS

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

INTERFACE LEVEL

 

Architecture independent level 1 (DDI/DKI).

PARAMETERS

 
q
Queue to be evaluated.

DESCRIPTION

 

qsize() evaluates the queue 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 integer representing the number of messages on the queue.

CONTEXT

 

qsize() can be called from user or interrupt context.

SEE ALSO

 

Writing Device Drivers

STREAMS Programming Guide


SunOS 5.9Go To TopLast Changed 11 Apr 1991

 
      
      
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.