[ Previous | Next | Contents | Glossary | Home | Search ]
AIX Version 4.3 Communications Technical Reference, Volume 2

qreply Utility


Sends a message on a stream in the reverse direction.


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


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.


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 Version 4.3 Communications Programming Concepts.

[ Previous | Next | Contents | Glossary | Home | Search ]