Kernel Functions for Drivers flushband(9F)
NAME
flushband - flush messages for a specified priority band
SYNOPSIS
#include
void flushband(queuet *q, unsigned char pri, int flag);
INTERFACE LEVEL
Architecture independent level 1 (DI/DKI).
PARAMETERS
q Pointer to the queue.
pri Priority of messages to be flushed.
flag Valid flag values are:
FLUSHDATA Flush only data messages (types MDATA,
MDELAY, MPROTO, and MPCPROTO ).
FLUSHAL 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.
CONTEXT
The flushband() function can be called from user, interrupt,
or kernel context.
SEE ALSO
flushq(9F)
Writing Device Drivers STREAMS Programming Guide
SunOS 5.11 Last change: 16 Jan 2006 1
|