qreply Utility

Purpose

Sends a message on a stream in the reverse direction.

Syntax

void qreply (q, bp)
register queue_t * q;
register mblk_t * bp;

Description

The qreply utility sends the message pointed to by the bp parameter either up or down the stream-in the reverse direction from the queue pointed to by the q parameter. The utility does this by locating the partner of the queue specified by the q parameter (see the OTHERQ utility), and then calling the put procedure of that queue's neighbor (as in the putnext utility). The qreply utility is typically used to send back a response (M_IOCACK or M_IOCNAK message) to an M_IOCTL message.

This utility is part of STREAMS Kernel Extensions.

Parameters

Item Description
q Specifies which queue to send the message up or down.
bp Specifies the message to send.