qreply(D3DK) —
.IX \f4qreply\fP(D3DK)
NAME
qreply − send a message in the opposite direction in a stream
SYNOPSIS
#include <sys/stream.h>
void qreply(queue_t ∗q, mblk_t ∗bp);
ARGUMENTS
qPointer to the queue from which the message is being sent.
bpPointer to the message to be sent in the opposite direction.
DESCRIPTION
qreply sends a message in the opposite direction from that which q is pointing. It calls the OTHERQ(D3DK) function to find q’s partner, and passes the message by calling the put(D2DK) routine of the next queue in the stream after q’s partner.
RETURN VALUE
None.
LEVEL
Base or Interrupt.
NOTES
Does not sleep.
Driver-defined basic locks, read/write locks, and sleep locks may not be held across calls to this function.
SEE ALSO
put(D2DK), OTHERQ(D3DK), putnext(D3DK)
EXAMPLE
See put(D2DK) for an example of qreply.
DDI/DKI — STREAMS