Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ qsize(D3DK) — Motorola System V 88k Release 4 Version 4.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

qsize(D3DK)  —  

.IX \f4qsize\fP(D3DK)

NAME

qsize − find the number of messages on a queue

SYNOPSIS

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

ARGUMENTS

qPointer to the queue to be evaluated. 

DESCRIPTION

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

RETURN VALUE

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

LEVEL

Base or Interrupt. 

NOTES

Does not sleep. 

Driver-defined basic locks, read/write locks, and sleep locks may be held across calls to this function. 

SEE ALSO

msqb(D4DK), queue(D4DK)

DDI/DKI  —  STREAMS

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