STREAMS-UX Programmer's Guide (February 2007)
STREAMS Utilities Supported by HP-UX
Appendix B
182
NAME
linkb () – Concatenates two messages.
SYNOPSIS
#include <sys/stream.h>
void linkb (mblk_t *mp1, mblk_t *mp2);
PARAMETERS
mp1
Pointer to first message block.
mp2
Pointer to the second message block that will be linked to
mp1
.
DESCRIPTION
linkb() links message
mp2
to message
mp1
. Data blocks and data buffers remain untouched. The b_cont
pointer from the last message block of the message of which mp1 is the first message block is updated to point
to message block
mp2
.
RETURN VALUES
None
CONSTRAINTS
linkb() can be called from thread or interrupt context. Spinlocks can be held across this call.