dupmsg(D3) dupmsg(D3)
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)
NOTICES
Portability
All processors
Applicability
ddi: 1, 2, 3, 4, 5, 5mp, 6, 6mp, 7, 7mp
Copyright 1994 Novell, Inc. Page 1