dupmsg(D3)dupmsg(D3)NAMEdupmsg - duplicate a message
SYNOPSIS
#include <sys/stream.h>
#include <sys/ddi.h>
mblk_t *dupmsg(mblk_t *mp);
Arguments
mp Pointer to the message.
DESCRIPTIONdupmsg forms a new message by duplicating the message blocks in the
message pointed to by mp and linking them via their b_cont pointers.
Return Values
On success, dupmsg returns a pointer to the new message. On failure, it
returns a NULL pointer.
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.
Examples
See the copyb(D3) manual page for an example of dupmsg.
REFERENCEScopyb(D3), copymsg(D3), dupb(D3), datab(D4), msgb(D4)
Page 1