Unix and Linux Discussions Tagged with adding |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
5 |
4,986 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
4,260 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
9,330 |
Shell Programming and Scripting |
|
|
|
4 |
2,171 |
UNIX for Beginners Questions & Answers |
|
|
|
9 |
3,842 |
What is on Your Mind? |
|
|
|
29 |
10,616 |
UNIX for Beginners Questions & Answers |
|
|
|
0 |
1,377 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
3,635 |
Shell Programming and Scripting |
|
|
|
2 |
5,094 |
Shell Programming and Scripting |
|
|
|
10 |
3,487 |
Shell Programming and Scripting |
|
|
|
1 |
2,567 |
Solaris |
|
|
|
5 |
9,919 |
Programming |
|
|
|
0 |
3,276 |
OS X Support RSS |
|
|
|
1 |
7,154 |
Shell Programming and Scripting |
|
|
|
9 |
18,267 |
Programming |
|
|
|
1 |
2,602 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
5,432 |
UNIX for Dummies Questions & Answers |
|
|
|
9 |
5,708 |
Solaris |
|
|
|
0 |
2,508 |
OS X Support RSS |
|
|
|
0 |
2,538 |
Solaris BigAdmin RSS |
|
|
|
0 |
1,178 |
UNIX and Linux RSS News |
|
|
|
2 |
3,789 |
Programming |
|
|
|
4 |
2,779 |
UNIX for Advanced & Expert Users |
|
|
|
6 |
2,811 |
Shell Programming and Scripting |
|
|
|
4 |
2,819 |
Shell Programming and Scripting |
|
|
|
6 |
5,123 |
Red Hat |
|
|
|
5 |
83,483 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
2,167 |
UNIX for Advanced & Expert Users |
|
|
|
5 |
6,338 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
4,391 |
Shell Programming and Scripting |
|
|
|
4 |
14,795 |
Shell Programming and Scripting |
|
|
|
3 |
7,067 |
Shell Programming and Scripting |
|
|
|
2 |
18,452 |
Shell Programming and Scripting |
|
|
|
5 |
6,005 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,545 |
Solaris |
|
|
|
1 |
16,257 |
Solaris |
|
|
|
3 |
3,714 |
SCO |
|
|
|
1 |
4,536 |
Shell Programming and Scripting |
|
|
|
15 |
6,306 |
Shell Programming and Scripting |
|
|
|
2 |
3,751 |
UNIX for Dummies Questions & Answers |
linkb(9F) Kernel Functions for Drivers linkb(9F)
NAME
linkb - concatenate two message blocks
SYNOPSIS
#include <sys/stream.h>
void linkb(mblk_t *mp1, mblk_t *mp2);
INTERFACE LEVEL
Architecture independent level 1 (DDI/DKI).
DESCRIPTION
linkb() creates a new message by adding mp2 to the tail of mp1. The continuation pointer, b_cont, of mp1 is set to point to mp2.
The following figure describes how the linkb(m1, m2); function concatenates two message blocks, mp1 and mp2:
Please see the online man page on docs.sun.com or a print copy for the diagram.
Figure that describes how the linkb(m1, m2); function creates a new message by adding mp1 to the tail of mp2
PARAMETERS
mp1 The message to which mp2 is to be added. mblk_t is an instance of the msgb(9S) structure.
mp2 The message to be added.
CONTEXT
linkb() can be called from user or interrupt context.
EXAMPLES
See dupb(9F) for an example that uses linkb().
SEE ALSO
dupb(9F), unlinkb(9F), msgb(9S)
Writing Device Drivers
STREAMS Programming Guide
SunOS 5.10 22 Mar 2002 linkb(9F)