.TH qsize() "" "" "DDI/DKI Kernel Routine"
.PC "Count the messages on a queue"
.B "#include <sys/stream.h>"
\fBint qsize(\fIqueue\^\fB)\fR
\fBqueue_t *\fIqueue\^\fB;\fR
.PP
.B qsize()
counts the messages on
.IR queue ,
and returns the sum.
.SH "See Also"
.B
DDI/DKI kernel routines,
msgb,
queue
.R
.SH Notes
.B qsize()
has base or interrupt level.
It does not sleep.
.PP
A driver can hold a
driver-defined basic lock, read/write lock, or sleep locks
across a call to this function.
.PP
The caller cannot have the stream frozen when it calls this function.
