Sun Microsystems, Inc.
spacerspacer
spacer   www.sun.com docs.sun.com | | |  
spacer
black dot
   
A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z
    
 
Kernel Functions for Driversputnext(9F)


NAME

 putnext - send a message to the next queue

SYNOPSIS

 
#include <sys/stream.h>
#include <sys/ddi.h>
void putnext(queue_t *q, mblk_t *mp);

INTERFACE LEVEL

 

Architecture independent level 1 (DDI/DKI).

PARAMETERS

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

DESCRIPTION

 

putnext() is used to pass a message to the put(9E) routine of the next queue in the stream.

RETURN VALUES

 

None.

CONTEXT

 

putnext() can be called from user or interrupt context.

EXAMPLES

 

See allocb(9F) for an example of using putnext().

SEE ALSO

 

put(9E), allocb(9F), put(9F), qprocson(9F)

Writing Device Drivers

STREAMS Programming Guide

NOTES

 

The put() and putnext() functions should be called only after qprocson() is finished.


SunOS 5.9Go To TopLast Changed 18 Feb 1998

 
      
      
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.