FREERBUF(9F) Kernel Functions for Drivers FREERBUF(9F)

freerbuf - free a raw buffer header

#include <sys/buf.h>
#include <sys/ddi.h>
void freerbuf(struct buf *bp);

Architecture independent level 1 (DDI/DKI).

bp
Pointer to a previously allocated buffer header structure.

The freerbuf() function frees a raw buffer header previously allocated by getrbuf(9F). This function does not sleep and so may be called from an interrupt routine.

The freerbuf() function can be called from user, interrupt, or kernel context.

getrbuf(9F), kmem_alloc(9F), kmem_free(9F), kmem_zalloc(9F)

January 16, 2006 OmniOS