pub struct DmaMapRequest<'a> {
pub range: MemoryRange,
pub host_va: *const u8,
pub mappable: Option<&'a Mappable>,
pub file_offset: u64,
pub writable: bool,
pub mapping_type: MappingType,
}Expand description
Parameters for a DMA mapping request.
Fields§
§range: MemoryRangeThe guest physical address range to map.
host_va: *const u8Host virtual address of the mapping.
mappable: Option<&'a Mappable>The backing object (fd or handle) for the mapping, when one exists.
None for anonymous/private RAM, which has no backing fd and is
mapped purely by host VA.
file_offset: u64Offset within mappable where the mapping starts. Ignored (and always
zero) when mappable is None, since private/anonymous RAM has no
backing object to offset into.
writable: boolWhether the mapping should allow writes. When false, the IOMMU
entry should be read-only.
mapping_type: MappingTypeThe type of memory being mapped.
Auto Trait Implementations§
impl<'a> Freeze for DmaMapRequest<'a>
impl<'a> RefUnwindSafe for DmaMapRequest<'a>
impl<'a> !Send for DmaMapRequest<'a>
impl<'a> !Sync for DmaMapRequest<'a>
impl<'a> Unpin for DmaMapRequest<'a>
impl<'a> UnsafeUnpin for DmaMapRequest<'a>
impl<'a> UnwindSafe for DmaMapRequest<'a>
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