2 .\" Copyright 1989 AT&T
3 .\" Copyright (C) 2006, Sun Microsystems, Inc.
4 .\" All Rights Reserved
5 .\" 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.
6 .\" 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.
7 .\" 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]
8 .TH LINKB 9F "Jan 16, 2006"
10 linkb \- concatenate two message blocks
14 #include <sys/stream.h>
18 \fBvoid\fR \fBlinkb\fR(\fBmblk_t *\fR\fImp1\fR, \fBmblk_t *\fR\fImp2\fR);
24 Architecture independent level 1 (DDI/DKI).
28 The \fBlinkb()\fR function creates a new message by adding \fImp2\fR to the
29 tail of \fImp1\fR. The continuation pointer, \fBb_cont\fR, of \fImp1\fR is set
30 to point to \fImp2\fR.
33 The following figure describes how the \fBlinkb(m1, m2);\fR function
34 concatenates two message blocks, \fBmp1\fR and \fBmp2\fR:
36 Printed copy or docs.sun.com shows a figure that describes how the linkb(m1,
37 m2); function creates a new message by adding mp1 to the tail of mp2
45 The message to which \fImp2\fR is to be added. \fBmblk_t\fR is an instance of
46 the \fBmsgb\fR(9S) structure.
55 The message to be added.
61 The \fBlinkb()\fR function can be called from user, interrupt, or kernel
66 See \fBdupb\fR(9F) for an example that uses \fBlinkb()\fR.
70 \fBdupb\fR(9F), \fBunlinkb\fR(9F), \fBmsgb\fR(9S)
73 \fIWriting Device Drivers\fR
76 \fISTREAMS Programming Guide\fR\fI\fR