Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ linkb(D3DK) — Motorola System V 88k Release 4 Version 4.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

linkb(D3DK)  —  

.IX \f4linkb\fP(D3DK)

NAME

linkb − concatenate two message blocks

SYNOPSIS

#include <sys/stream.h>
void linkb(mblk_t ∗mp1, mblk_t ∗mp2);

ARGUMENTS

mp1Pointer to the message to which mp2 is to be added. 

mp2Pointer to the message to be added. 

DESCRIPTION

linkb 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:

 scale=120
box invis ht 208 wid 488 with .sw at 0,0
line  from 0,16 to 488,16
"linkb(mp1, mp2);" at 192,-3
"Before" at 84,25
"After" at 344,24
line -> from 272,160 to 304,160
"mp1" at 244,189
box ht 48 wid 72 with .nw at 208,176
"b_cont" at 244,161
line -> from 368,160 to 400,160
"b_cont" at 340,161
box ht 48 wid 72 with .nw at 304,176
"(0)" at 436,145
box ht 48 wid 72 with .nw at 400,176
"b_cont" at 436,161
"mp2" at 436,189
"mp1" at 44,189
"b_cont" at 140,161
"(0)" at 136,145
box ht 48 wid 72 with .nw at 104,176
line -> from 72,160 to 104,160
box ht 48 wid 72 with .nw at 8,176
"b_cont" at 44,161
"b_cont" at 84,73
"mp2" at 84,101
"(0)" at 84,57
box ht 48 wid 72 with .nw at 48,88
line  from 192,208 to 192,16

RETURN VALUE

None. 

LEVEL

Base or Interrupt. 

NOTES

Does not sleep. 

Driver-defined basic locks, read/write locks, and sleep locks may be held across calls to this function. 

SEE ALSO

unlinkb(D3DK), msgb(D4DK)

DDI/DKI  —  STREAMS

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026