.TH freerbuf() "" "" "DDI/DKI Kernel Routine"
.PC "Free a buffer header used for raw I/O"
.B "#include <sys/buf.h>"
.B "#include <sys/ddi.h>"
\fBvoid freerbuf(\fIbuf_header\^\fB)\fR
\fBbuf_t *\fIbuf_header\^\fB;\fR
.PP
.B freerbuf()
frees a buffer header that had been allocated by a call to
.BR getrbuf() .
It returns nothing.
.I buf_header
points to the buffer header to be freed.
.PP
This function normally is called through the I/O-done handler.
For details on what the I/O-done handler is and how you establish it,
see the Lexicon entry for
.BR getrbuf() .
.SH "See Also"
.B
buf,
DDI/DKI kernel routines,
getrbuf()
.R
.SH Notes
.B freerbuf()
has base or interrupt level, and does not sleep.
.PP
A function can hold a basic lock, read/write lock, or sleep lock
across a call to this function.
