kmem_free(D3)kmem_free(D3)NAMEkmem_free - free previously allocated kernel memory
SYNOPSIS
#include <sys/types.h>
#include <sys/kmem.h>
#include <sys/ddi.h>
void kmem_free(void *addr, size_t size);
Arguments
addr Address of the allocated memory to be returned.
size Number of bytes to free.
DESCRIPTIONkmem_free returns size bytes of previously allocated kernel memory.
Return Values
None
USAGE
The addr argument must specify an address that was returned by a call to
kmem_alloc(D3) or kmem_zalloc(D3).
The size argument must specify the same number of bytes as was allocated
by the corresponding call to kmem_alloc or kmem_zalloc.
Together, the addr and size arguments must specify exactly one complete
area of memory that was allocated by a call to kmem_alloc or kmem_zalloc
(that is, the memory cannot be freed piecemeal).
Level
Initialization, Base or Interrupt.
Synchronization Constraints
Does not sleep.
Driver-defined basic locks, read/write locks, and sleep locks may be held
across calls to this function.
REFERENCESkmem_alloc(D3), kmem_zalloc(D3)
Page 1