#include <sys/stream.h> void freeb(mblk_t *bp);
Architecture independent level 1 (DDI/DKI).
If the data buffer to be freed was allocated with the esballoc(9F) , the buffer may be a non-STREAMS resource. In that case, the driver must be notified that the attached data buffer needs to be freed, and run its own freeing routine. To make this process independent of the driver used in the stream, freeb() finds the free_rtn(9S) structure associated with the buffer. The free_rtn structure contains a pointer to the driver-dependent routine, which releases the buffer. Once this is accomplished, freeb() releases the STREAMS resources associated with the buffer.
freeb() can be called from user or interrupt context.