flushq(9r) flushq(9r)
NAME
flushq - STREAMS: Removes a message from a queue
SYNOPSIS
#include <sys/stream.h>
void flushq(
queue_t *queue,
int flag );
ARGUMENTS
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
DESCRIPTION
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.
RETURN VALUES
None
SEE ALSO
Kernel Interfaces: flushband(9r), freemsg(9r), putq(9r)
Programmer's Guide: STREAMS
flushq(9r)