Freeing Kernel Memory Exported for User Access
When the driver is unloaded, the memory that was allocated by ddi_umem_alloc(9F) must be freed by calling ddi_umem_free(9F).
void ddi_umem_free(ddi_umem_cookie_t cookie); |
cookie is the kernel memory cookie returned by ddi_umem_alloc(9F).