DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
SVR5 and SCO OpenServer 5

freemsg(D3str)


freemsg -- free a message

Synopsis

   #include <sys/stream.h>
   #include <sys/ddi.h>
   

void freemsg(mblk_t *mp);

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(D4str)), calling freeb(D3str) for every message block in the message.

Arguments


mp
Pointer to the message to be deallocated.

Return values

None

Usage

Context

Base or Interrupt.

Synchronization constraints

Does not block.

Driver-defined basic locks, read/write locks, and sleep locks may be held across calls to this function.

Examples

See copymsg(D3str) for an example of freemsg.

Hardware applicability

All

Version applicability

ddi: 1, 2, 3, 4, 5, 5mp, 6, 6mp, 7, 7mp, 7.1, 7.1mp, 8, 8mp
oddi: 1, 2, 2mp, 3, 3mp, 4, 4mp, 5, 5mp, 6, 6mp

References

freeb(D3str), msgb(D4str)
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005