[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]
Communications Technical Reference, Volume 2

flushq Utility

Purpose

Flushes a queue.

Syntax

void flushq(q, flag)
register queue_t *q;
int flag;

Description

The flushq utility removes messages from the message queue specified by the q parameter and then frees them using the freemsg utility.

If a queue behind the q parameter is blocked, the flushq utility may enable the blocked queue, as described in the putq utility.

Parameters

q Specifies the queue to flush.
flag Specifies the types of messages to flush. Possible values are:
FLUSHDATA Discards all M_DATA, M_PROTO, M_PCPROTO, and M_DELAY messages, but leaves all other messages on the queue.
FLUSHALL Discards all messages from the queue.

Implementation Specifics

This utility is part of STREAMS Kernel Extensions.

Related Information

The freemsg utility, putq utility.

List of Streams Programming References and Understanding STREAMS Messages in AIX Version 4.3 Communications Programming Concepts.


[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]