rmvq Utility

Purpose

Removes a message from a queue.

Syntax

void rmvq (q, mp)
register queue_t * q;
register mblk_t * mp;

Description

Attention: If the mp parameter does not point to a message that is present on the specified queue, a system panic could result.

The rmvq utility removes the message pointed to by the mp parameter from the message queue pointed to by the q parameter, and then restores the linkage of the messages remaining on the queue.

This utility is part of STREAMS Kernel Extensions.

Parameters

Item Description
q Specifies the queue from which to remove the message.
mp Specifies the message to be removed.