#include <sys/stream.h>
Architecture independent level 1 (DDI/DKI).
freemsg() calls freeb(9F) to free all message and data blocks associated with the message pointed to by mp.
freemsg() can be called from user or interrupt context.
See copymsg(9F).
copymsg(9F), freeb(9F), msgb(9S)
Writing Device Drivers
STREAMS Programming Guide
The behavior of freemsg() when passed a NULL pointer is Solaris-specific.