freemsg(D3) freemsg(D3)
NAME
freemsg - free a message
SYNOPSIS
#include <sys/stream.h>
#include <sys/ddi.h>
void freemsg(mblk_t *mp);
Arguments
mp Pointer to the message to be deallocated.
DESCRIPTION
freemsg frees all message blocks, data blocks, and data
buffers associated with the message pointed to by mp. freemsg
walks down the b_cont list [see msgb(D4)], calling freeb(D3)
for every message block in the message.
Return Values
None
USAGE
Level
Base or Interrupt.
Synchronization Constraints
Does not sleep.
Driver-defined basic locks, read/write locks, and sleep locks
may be held across calls to this function.
Examples
See copymsg(D3) for an example of freemsg.
REFERENCES
freeb(D3), msgb(D4)
NOTICES
Portability
All processors
Applicability
ddi: 1, 2, 3, 4, 5, 5mp, 6, 6mp, 7, 7mp
Copyright 1994 Novell, Inc. Page 1