flushband(D3DK) —
.IX \f4flushband\fP(D3DK)
NAME
flushband − flush messages in a specified priority band
SYNOPSIS
#include <sys/types.h>
#include <sys/stream.h>
void flushband(queue_t ∗q, uchar_t pri, int flag);
ARGUMENTS
qPointer to the queue.
priPriority band of messages to be flushed.
flagDetermines messages to flush. Valid flag values are:
FLUSHDATA .IX STREAMS messages
Flush only data messages (types M_DATA, M_DELAY, M_PROTO, and M_PCPROTO).
FLUSHALL Flush all messages.
DESCRIPTION
The flushband function flushes messages associated with the priority band specified by pri. If pri is 0, only normal and high priority messages are flushed. Otherwise, messages are flushed from the band pri according to the value of flag.
RETURN VALUE
None.
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
put(D2DK), flushq(D3DK), queue(D4DK)
EXAMPLE
See put(D2DK) for an example of flushband.
DDI/DKI — STREAMS