Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ qsize(9F) — SunOS 5.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

qsize(9F)

NAME

qsize − find the number of messages on a queue

SYNOPSIS

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

ARGUMENTS

q Queue to be evaluated. 

INTERFACE LEVEL

Architecture independent level 1 (DDI/DKI). 

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

SunOS 5.3 Writing Device Drivers
SunOS 5.3 STREAMS Programmer’s Guide

Sun Microsystems  —  Last change: 11 Apr 1991

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026