freemsg(D3)freemsg(D3)NAMEfreemsg - free a message
SYNOPSIS
#include <sys/stream.h>
#include <sys/ddi.h>
void freemsg(mblk_t *mp);
Arguments
mp Pointer to the message to be deallocated.
DESCRIPTIONfreemsg 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(D4)], calling freeb(D3) for every message block in
the message.
Return Values
None
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 copymsg(D3) for an example of freemsg.
REFERENCESfreeb(D3), msgb(D4)
Page 1