unlinkb(9r)unlinkb(9r)NAMEunlinkb - STREAMS: Removes a message block from the head of a message
SYNOPSIS
#include <sys/stream.h>
MBLKP unlinkb(
MBLKP message_ptr );
ARGUMENTS
Specifies a pointer to the message block from which the first message
block is to be removed. The typedef MBLKP is an alternate name for
typedef struct msgb *.
DESCRIPTION
The unlinkb interface removes the first message block from the message
block pointed to by the message_ptr argument. The interface returns a
pointer to the new message block, minus the removed message block.
RETURN VALUES
Upon successful completion, unlinkb returns a pointer to the new mes‐
sage block with the first message block removed. If there is only one
message block in the specified message block, unlinkb returns NULL.
SEE ALSO
Kernel Interfaces: linkb(9r)unlinkb(9r)