.TH flushband() "" "" "DDI/DKI Kernel Routine"
.PC "Flush messages in a given priority band"
.B "#include <sys/types.h>"
.B "#include <sys/stream.h>"
\fBvoid flushband(\fIqueue\^\fB, \fIpriority\^\fB, \fIflag\^\fB)\fR
\fBqueue_t *\fIqueue\^\fB; uchar_t \fIpriority\^\fB; int \fIflag\^\fB;\fR
.PP
.B flushband()
flushes all messages in priority band
.I priority
of the message queue to which
.I queue
points.
If
.I priority
is zero,
.B flushband()
flushes only messages with normal or high priority.
Otherwise, it flushes messages from
.I priority
according to the value of
.IR flag ,
as follows:
.IP \fBFLUSHDATA\fR 1.0i
Flush only data messages, i.e., messages of type
.BR M_DATA ,
.BR M_DELAY ,
.BR M_PROTO ,
or
.BR M_PCPROTO .
.IP \fBFLUSHALL\fR
Flush all messages.
.SH "See Also"
.B
DDI/DKI kernel routines,
flushq(),
put(),
queue
.R
.SH Notes
.B flushband()
has base or interrupt level.
It does not sleep.
.PP
The calling process cannot have the stream frozen when
calling this function.
.PP
A driver can hold a
driver-defined basic lock, read/write lock, or sleep lock
across a call to this function.
