flushq - STREAMS: Removes a message from a queue
#include <sys/stream.h>
void flushq(
queue_t *queue,
int flag );
Specifies a pointer to the queue to be flushed. The typedef
queue_t is an alternate name for struct queue_entry *.
Specifies one of the following flag flush values: Flush
only data messages. These data messages are represented
by the M_DATA, M_DELAY, M_PROTO, and M_PCPROTO constants.
Flush all messages. Requests a realtime delay
The flushq interface frees messages and their associated
data structures by calling the freemsg interface. If the
queue's count falls below the low-water mark and the
QWANTW bit is set, flushq enables the nearest upstream
service procedure.
None
Kernel Interfaces: flushband(9r), freemsg(9r), putq(9r)
Programmer's Guide: STREAMS
flushq(9r)
[ Back ] |