Merge commit '9276b3991ba20d5a5660887ba81b0bc7bed25a0c'
[unleashed.git] / share / man / man9f / linkb.9f
blob3e6215aac55566048741314e8f553372b8008976
1 '\" te
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"
9 .SH NAME
10 linkb \- concatenate two message blocks
11 .SH SYNOPSIS
12 .LP
13 .nf
14 #include <sys/stream.h>
18 \fBvoid\fR \fBlinkb\fR(\fBmblk_t *\fR\fImp1\fR, \fBmblk_t *\fR\fImp2\fR);
19 .fi
21 .SH INTERFACE LEVEL
22 .sp
23 .LP
24 Architecture independent level 1 (DDI/DKI).
25 .SH DESCRIPTION
26 .sp
27 .LP
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.
31 .sp
32 .LP
33 The following figure describes how the \fBlinkb(m1, m2);\fR function
34 concatenates two message blocks, \fBmp1\fR and \fBmp2\fR:
35 .sp
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
38 .SH PARAMETERS
39 .sp
40 .ne 2
41 .na
42 \fB\fImp1\fR\fR
43 .ad
44 .RS 7n
45 The message to which \fImp2\fR is to be added. \fBmblk_t\fR is an instance of
46 the \fBmsgb\fR(9S) structure.
47 .RE
49 .sp
50 .ne 2
51 .na
52 \fB\fImp2\fR\fR
53 .ad
54 .RS 7n
55 The message to be added.
56 .RE
58 .SH CONTEXT
59 .sp
60 .LP
61 The \fBlinkb()\fR function can be called from user, interrupt, or kernel
62 context.
63 .SH EXAMPLES
64 .sp
65 .LP
66 See \fBdupb\fR(9F) for an example that uses \fBlinkb()\fR.
67 .SH SEE ALSO
68 .sp
69 .LP
70 \fBdupb\fR(9F), \fBunlinkb\fR(9F), \fBmsgb\fR(9S)
71 .sp
72 .LP
73 \fIWriting Device Drivers\fR
74 .sp
75 .LP
76 \fISTREAMS Programming Guide\fR\fI\fR