Content-type: text/html Man page of qsize

qsize

Section: Kernel Functions for Drivers (9F)
Updated: 16 Jan 2006
Index Return to Main Contents
 

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

The qsize() function 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

The qsize() function can be called from user, interrupt, or kernel context.  

SEE ALSO

Writing Device Drivers

STREAMS Programming Guide


 

Index

NAME
SYNOPSIS
INTERFACE LEVEL
PARAMETERS
DESCRIPTION
RETURN VALUES
CONTEXT
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 02:39:47 GMT, October 02, 2010