putnext(9F)
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 Message to be passed.
INTERFACE LEVEL
Architecture independent level 1 (DDI/DKI).
DESCRIPTION
putnext() is used to pass a message to the put(9E) routine of the next queue in the stream.
RETURN VALUES
putnext() returns:
1 on success.
0 on failure.
CONTEXT
putnext() can be called from user or interrupt context.
EXAMPLE
See allocb(9F) for an example of using putnext().
SEE ALSO
SunOS 5.1 Writing Device Drivers
SunOS 5.1 STREAMS Programmer’s Guide
SunOS 5.1 — Last change: 11 Apr 1991