Frees an area of memory.
int d_free_dmamem(d_handle_t device_handle, void * addr, size_t size)
Exported, documented kernel service supported on PCI-based systems only. The d_free_dmamem kernel service frees the area of memory pointed to by the addr parameter. This area of memory must be allocated with the d_alloc_dmamem kernel service using the same device_handle, and the addr must be the address returned from the corresponding d_alloc_dmamem call. Also, the size must be the same size that was used on the corresponding d_alloc_dmamem call.
| Item | Description |
|---|---|
| device_handle | Indicates the dma handle. |
| size_t size | Specifies size of area to free. |
| void * addr | Specifies address of area to free. |
| Item | Description |
|---|---|
| 0 | Indicates successful completion. |
| –1 | Indicates underlying free service (xmfree or rmalloc) failed. |