STREAMS-UX Programmer's Guide (February 2007)
STREAMS Utilities Supported by HP-UX
Appendix B
176
NAME
freemsg () – Frees a STREAMS message.
SYNOPSIS
#include <sys/stream.h>
void freemsg (mblk_t *mp);
PARAMETERS
mp
Pointer to the message to be freed.
DESCRIPTION
This function calls freeb() to free all message blocks and corresponding data blocks and data buffers
associated with the message, beginning at
mp
.
RETURN VALUES
None
CONSTRAINTS
freemsg() can be called from thread or interrupt context. Only spinlocks of STREAMS/UX user lock order
can be held across this call.