unlinkb - STREAMS: Removes a message block from the head
of a message
#include <sys/stream.h>
MBLKP unlinkb(
MBLKP message_ptr );
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 *.
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.
Upon successful completion, unlinkb returns a pointer to
the new message block with the first message block
removed. If there is only one message block in the specified
message block, unlinkb returns NULL.
Kernel Interfaces: linkb(9r)
unlinkb(9r)
[ Back ] |