freemsg(D3DK) —
.IX \f4freemsg\fP(D3DK)
.IX STREAMS message blocks
.IX message (STREAMS), block
NAME
freemsg − free a message
SYNOPSIS
#include <sys/stream.h>
void freemsg(mblk_t ∗mp);
ARGUMENTS
mpPointer to the message to be deallocated.
DESCRIPTION
freemsg frees all message blocks, data blocks, and data buffers associated with the message pointed to by mp. freemsg walks down the b_cont list [see msgb(D4DK)], calling freeb(D3DK) for every message block in the message.
RETURN VALUE
None.
LEVEL
Base or Interrupt.
NOTES
Does not sleep.
Driver-defined basic locks, read/write locks, and sleep locks may be held across calls to this function.
SEE ALSO
freeb(D3DK), msgb(D4DK)
EXAMPLE
See copymsg(D3DK) for an example of freemsg.
DDI/DKI — STREAMS