.TH kmem_free() "" "" "DDI/DKI Kernel Routine"
.PC "Free previously allocated kernel memory"
.B "#include <sys/types.h>"
.B "#include <sys/kmem.h>"
\fBvoid kmem_free(\fIaddress\^\fB, \fIbytes\^\fB)\fR
\fBvoid *\fIaddress\^\fB; size_t \fIbytes\^\fB;\fR
.PP
.B kmem_free()
returns to the free pool
.I bytes
of memory at
.IR address .
This memory must have been allocated by a call to
.B kmem_alloc()
or
.BR kmem_zalloc() .
.SH "See Also"
.B
DDI/DKI kernel routines,
kmem_alloc(),
kmem_zalloc()
.R
.SH Notes
.B kmem_free()
has base or interrupt level.
It does not sleep.
.PP
A driver can hold a
driver-defined basic lock, read/write lock, or sleep lock
across a call to this function.
