STREAMS-UX Programmer's Guide (February 2007)

STREAMS Utilities Supported by HP-UX
Appendix B
204
NAME
qreply () – Sends a message back in a opposite direction.
SYNOPSIS
#include <sys/stream.h>
void qreply (queue_t *q, mblk_t *mp);
PARAMETERS
q
Pointer to queue from which a message is to be passed in the opposite direction.
mp
Pointer to message to be passed as a reply.
DESCRIPTION
This function passes a message back in the opposite direction from the currently processing flow. A common
use for qreply() is seen in the way positive or negative acknowledgments are sent in response to M_IOCTL
messages received by a module or driver.
RETURN VALUES
None
CONSTRAINTS
qreply() can be called from thread or interrupt context. Spinlocks must not be held across calls to qreply().