SVR5 and SCO OpenServer 5
free a message block
void freeb(mblk_t *bp);
freeb deallocates a message block.
If the reference count of the
db_ref member of the
structure is greater than 1,
freeb decrements the count and returns.
db_ref equals 1,
it deallocates the message block and the
corresponding data block and buffer.
Pointer to the message block to be deallocated.
If the data buffer to be freed was allocated with
the driver is notified that the attached data buffer
needs to be freed by calling the
structure associated with the
Once this is accomplished,
freeb releases the STREAMS resources
associated with the buffer.
Base or Interrupt.
Does not block.
Driver-defined basic locks, read/write locks, and sleep locks
may be held across calls to this function.
for an example of freeb.
1, 2, 3, 4, 5, 5mp, 6, 6mp, 7, 7mp, 7.1, 7.1mp, 8, 8mp
1, 2, 2mp, 3, 3mp, 4, 4mp, 5, 5mp, 6, 6mp
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005