linkb(D3)linkb(D3)NAMElinkb - concatenate two message blocks
SYNOPSIS
#include <sys/stream.h>
#include <sys/ddi.h>
void linkb(mblk_t *mp1, mblk_t *mp2);
Arguments
mp1 Pointer to the message to which mp2 is to be added.
mp2 Pointer to the message to be added.
DESCRIPTIONlinkb appends the message mp2 to the tail of message mp1. The
continuation pointer (b_cont) of the last message block in the first
message is set to point to the second message:
_________________________________________
linkb(mp1, mp2);
Before
After
___
mp1
|
______
|
______
b_cont
___
b_cont
|
______
|
______
(0)
|
______
|
______
b_cont
mp2
mp1
b_cont
(0)
|
______
|
______
___
|
______
|
______
b_cont
b_cont
mp2
(0)
|
______
|
______
|
Return Values
None.
USAGE
Level
Base or Interrupt.
Synchronization Constraints
Does not sleep.
Driver-defined basic locks, read/write locks, and sleep locks may be held
across calls to this function.
REFERENCESmsgb(D4), unlinkb(D3)
Page 1