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

putnext(D3str)


putnext -- send a message to the next queue

Synopsis

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

int putnext(queue_t *q, mblk_t *mp);

Description

The putnext function is used to pass a message to the put(D2str) routine of the next queue (q->q_next) in the stream.

Arguments


q
Pointer to the queue from which the message mp will be sent.

mp
Pointer to the message to be passed.

Return values

Ignored

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 to avoid potential deadlock problems. See ``Spin locks (DDI)'' in HDK Technical Reference for more information.

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

put(D2str)

Examples

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