pub unsafe fn dealloc_coherent(dma: DMAMem, 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 of [DMAInfo
] 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.