⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

alloc_dma_buffer

Function alloc_dma_buffer 

Source
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.