'\"macro stdmacro
.if n .pH ddi_dki.freemsg @(#)freemsg	40.6 of 10/10/89
.\" Copyright 1989 AT&T
.de IX
.ie '\\n(.z'' .tm .Index: \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9	\\n%
.el \\!.IX \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9
..
.nr X
.if \nX=0 .ds x} freemsg D3DK "STREAMS" "DDI/DKI" "\&"
.if \nX=1 .ds x} freemsg D3DK "STREAMS" "DDI/DKI"
.if \nX=2 .ds x} freemsg D3DK "" "\&"
.if \nX=3 .ds x} freemsg "" "" "\&"
.TH \*(x}
.IX "\f4freemsg\fP(D3DK)"
.IX "STREAMS message blocks"
.IX "message (STREAMS), block"
.SH NAME
\f4freemsg\f1 \- free all message blocks in a message
.SH SYNOPSIS
.nf
.na
\f4#include <sys/stream.h>
.sp 0.5
int freemsg(mblk_t *\f2mp\f4);\f1
.ad
.fi
.SH ARGUMENT
.RS 0n 10
.IP "\f2mp\f1" 10n
Pointer to the message blocks to be deallocated. \f4mblk_t\f1 is an instance
of the \f4msgb\f1(D4DK) structure.
.RE
.SH DESCRIPTION
\f4freemsg\f1 calls \f4freeb\f1(D3DK) to free all message and data blocks
associated with the message pointed to by \f2mp\f1.
.SH "RETURN VALUE" 
None
.SH "LEVEL" 
Base or Interrupt
.SH "SEE ALSO" 
\f2BCI Driver Development Guide\f1, Chapter 7, ``STREAMS''
.P
.na
\f4freeb\f1(D3DK)
.ad
.SH EXAMPLE 
See the \f4copymsg\f1(D3DK) function page for an example of \f4freemsg\f1.
