2 .\" Copyright (c) 2006, Sun Microsystems, Inc., All Rights Reserved
3 .\" 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.
4 .\" 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.
5 .\" 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]
6 .TH MSGPULLUP 9F "Jan 16, 2006"
8 msgpullup \- concatenate bytes in a message
12 #include <sys/stream.h>
16 \fBmblk_t *\fR\fBmsgpullup\fR(\fBmblk_t *\fR\fImp\fR, \fBssize_t\fR \fIlen\fR);
22 Architecture independent level 1 (DDI/DKI).
30 Pointer to the message whose blocks are to be concatenated.
39 Number of bytes to concatenate.
45 The \fBmsgpullup()\fR function concatenates and aligns the first \fIlen\fR data
46 bytes of the message pointed to by \fImp\fR, copying the data into a new
47 message. Any remaining bytes in the remaining message blocks will be copied and
48 linked onto the new message. The original message is unaltered. If \fIlen\fR
49 equals \fB\(mi1\fR, all data are concatenated. If \fIlen\fR bytes of the same
50 message type cannot be found, \fBmsgpullup()\fR fails and returns \fINULL\fR.
54 The \fBmsgpullup\fR function returns the following values:
61 Successful completion. A pointer to the new message is returned.
76 The \fBmsgpullup()\fR function can be called from user, interrupt, or kernel
81 \fBsrv\fR(9E), \fBallocb\fR(9F), \fBpullupmsg\fR(9F), \fBmsgb\fR(9S)
84 \fIWriting Device Drivers\fR
87 \fISTREAMS Programming Guide\fR
91 The \fBmsgpullup()\fR function is a \fBDKI\fR-compliant replacement for the
92 older \fBpullupmsg\fR(9F) routine. Users are strongly encouraged to use
93 \fBmsgpullup()\fR instead of \fBpullupmsg\fR(9F).