putnext(D3) putnext(D3)
NAME
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);
Arguments
q Pointer to the queue from which the message mp will
be sent.
mp Pointer to the message to be passed.
DESCRIPTION
The putnext function is used to pass a message to the put(D2)
routine of the next queue (q->q_next) in the stream.
Return Values
Ignored
USAGE
Level
Base or Interrupt.
Synchronization Constraints
Does not sleep.
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(D3)]
when calling this function.
Examples
See allocb(D3) for an example of putnext.
REFERENCES
put(D2)
NOTICES
Portability
All processors
Copyright 1994 Novell, Inc. Page 1
putnext(D3) putnext(D3)
Applicability
ddi: 1, 2, 3, 4, 5, 5mp, 6, 6mp, 7, 7mp
Copyright 1994 Novell, Inc. Page 2