pub fn alloc_dma_buffer(
size: usize,
direction: DmaDirection,
) -> KernelResult<DmaMappedBuffer>Expand description
Allocate a physically contiguous DMA buffer.
Returns a DmaMappedBuffer with both virtual and DMA addresses.
The buffer is cache-coherent by default on x86_64.