DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
SVR5 and SCO OpenServer 5

qreply(D3str)


qreply -- send a message in the opposite direction in a stream

Synopsis

   #include <sys/stream.h>
   #include <sys/ddi.h>
   

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

Description

qreply sends a message in the opposite direction from that which q is pointing. It calls the OTHERQ(D3str) function to find q's partner, and passes the message by calling the put(D2str) routine of the next queue in the stream after q's partner.

Arguments


q
Pointer to the queue from which the message is being sent.

bp
Pointer to the message to be sent in the opposite direction.

Return values

None

Usage

Context

Base or Interrupt.

Synchronization constraints

Does not block.

Driver-defined basic locks, read/write locks, and sleep locks may not be held across calls to this function.

The caller cannot have the stream frozen (see freezestr(D3str)) when calling this function.

Hardware applicability

All

Version applicability

ddi: 1, 2, 3, 4, 5, 5mp, 6, 6mp, 7, 7mp, 7.1, 7.1mp, 8, 8mp
oddi: 1, 2, 2mp, 3, 3mp, 4, 4mp, 5, 5mp, 6, 6mp

References

OTHERQ(D3str), put(D2str), putnext(D3str)

Examples

See put(D2str) for an example of qreply.
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005