Function axdma::dealloc_coherent
source · pub unsafe fn dealloc_coherent(dma: DMAInfo, layout: Layout)
Expand description
Frees coherent memory previously allocated.
This function releases the memory block that was previously allocated and marked as coherent. It ensures proper deallocation and management of resources associated with the memory block.
dma_info
: An instance ofDMAInfo
containing the details of the memory block to be freed, such as its starting address and size.
§Safety
This function is unsafe because it directly interacts with the global allocator, which can potentially cause memory leaks or other issues if not used correctly.