[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]

Technical Reference: Communications, Volume 2


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.

Parameters


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

Implementation Specifics

This utility is part of STREAMS Kernel Extensions.

Related Information

The OTHERQ utility, putnext utility.

List of Streams Programming References and Understanding STREAMS Messages in AIX 5L Version 5.1 Communications Programming Concepts.


[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]