.TH rmvq() "" "" "DDI/DKI Kernel Routine"
.PC "Remove a message from a queue"
.B "#include <sys/stream.h>"
\fBvoid rmvq(\fIqueue\^\fB, \fImessage\^\fB)\fR
\fBqueue_t *\fIqueue\^\fB; mblk_t *\fImessage\^\fB;\fR
.PP
.B rmvq()
removes
.I message
from
.IR queue .
.SH "See Also"
.B
DDI/DKI kernel routines,
getq(),
insq()
.R
.SH Notes
.B rmvq()
has base or interrupt level.
It does not sleep.
.PP
A driver can hold a
driver-defined basic lock, read/write lock, or sleep lock
across a call to this function.
.PP
The caller must have the stream frozen when calling this function.
.PP
If
.I message
does not point to a message within
.IR queue ,
the system panics:
.IR "Caveat utilitor" .
