xref: /titanic_51/usr/src/man/man9f/putnext.9f (revision c10c16dec587a0662068f6e2991c29ed3a9db943)
te
Copyright (c) 2006, Sun Microsystems, Inc. All Rights Reserved.
Copyright 1989 AT&T
The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
putnext 9F "16 Jan 2006" "SunOS 5.11" "Kernel Functions for Drivers"
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

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

RETURN VALUES

None.

CONTEXT

The putnext() function can be called from user, interrupt, or kernel 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.