dupmsg(D3)
dupmsg - duplicate a message
As shipped in IRIX 6.5.30. Unchanged since IRIX 6.5.
NAME dupmsg - duplicate a message SYNOPSIS #include <sys/stream.h> #include <sys/ddi.h> mblk_t *dupmsg(mblk_t *mp); Arguments mp Pointer to the message. DESCRIPTION dupmsg 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. REFERENCES copyb(D3), copymsg(D3), dupb(D3), datab(D4), msgb(D4)