pub struct DmaBuffer {
pub virt: NonNull<u8>,
pub bus_addr: u64,
pub len: usize,
}Expand description
DMA buffer passed from the runtime queue layer to a driver queue.
Fields§
§virt: NonNull<u8>CPU virtual address for drivers that need to build descriptors from a slice or write transport-specific headers.
bus_addr: u64Device-visible DMA address for hardware descriptors.
len: usizeBuffer length in bytes.
Trait Implementations§
Auto Trait Implementations§
impl !Send for DmaBuffer
impl !Sync for DmaBuffer
impl Freeze for DmaBuffer
impl RefUnwindSafe for DmaBuffer
impl Unpin for DmaBuffer
impl UnsafeUnpin for DmaBuffer
impl UnwindSafe for DmaBuffer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more