freemsg(9F)
NAME
freemsg − free all message blocks in a message
SYNOPSIS
#include <sys/stream.h>
void freemsg(mblk_t ∗mp);
INTERFACE LEVEL
Architecture independent level 1 (DDI/DKI).
ARGUMENTS
mp Pointer to the message blocks to be deallocated. mblk_t is an instance of the msgb(9S) structure.
DESCRIPTION
freemsg() calls freeb(9F) to free all message and data blocks associated with the message pointed to by mp.
CONTEXT
freemsg() can be called from user or interrupt context.
EXAMPLE
See copymsg(9F).
SEE ALSO
Writing Device Drivers
STREAMS Programming Guide
SunOS 5.5/x86 — Last change: 11 Apr 1991