.TH freemsg() "" "" "DDI/DKI Kernel Routine"
.PC "Free a message"
.B "#include <sys/stream.h>"
\fBvoid freemsg(\fImessage\^\fB)\fR
\fBmblk_t *\fImessage\^\fB;\fR
.PP
.B freemsg()
frees
.IR message ,
including all of its
message blocks and data buffers.
.SH "See Also"
.B
DDI/DKI kernel routines,
freeb(),
datab,
msgb
.R
.SH Notes
.B freemsg()
has base or interrupt level.
It does not sleep.
.PP
A driver can hold a
driver-defined basic lock, read/write lock, or sleep lock
across a call to this function.
