dma_api

Trait Impl

Source
pub trait Impl {
    // Required methods
    fn map(addr: NonNull<u8>, size: usize, direction: Direction) -> u64;
    fn unmap(addr: NonNull<u8>, size: usize);
    fn flush(addr: NonNull<u8>, size: usize);
    fn invalidate(addr: NonNull<u8>, size: usize);
}

Required Methods§

Source

fn map(addr: NonNull<u8>, size: usize, direction: Direction) -> u64

map virt address to physical address

Source

fn unmap(addr: NonNull<u8>, size: usize)

unmap virt address

Source

fn flush(addr: NonNull<u8>, size: usize)

write cache back to memory

Source

fn invalidate(addr: NonNull<u8>, size: usize)

invalidate cache

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§