pub struct DmaDomainId(/* private fields */);Expand description
Stable identity for one DMA translation domain.
Drivers use this to reject already-prepared DMA buffers that were prepared for a different device/IOMMU domain.
Implementations§
Source§impl DmaDomainId
impl DmaDomainId
pub const fn new(id: NonZeroU64) -> Self
Sourcepub const fn legacy_global() -> Self
pub const fn legacy_global() -> Self
Compatibility domain for legacy callers that have not plumbed a device/IOMMU-specific identity yet.
pub fn from_raw(id: u64) -> Self
pub const fn get(self) -> NonZeroU64
Trait Implementations§
Source§impl Clone for DmaDomainId
impl Clone for DmaDomainId
Source§fn clone(&self) -> DmaDomainId
fn clone(&self) -> DmaDomainId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DmaDomainId
Source§impl Debug for DmaDomainId
impl Debug for DmaDomainId
impl Eq for DmaDomainId
Source§impl Hash for DmaDomainId
impl Hash for DmaDomainId
Source§impl Ord for DmaDomainId
impl Ord for DmaDomainId
Source§fn cmp(&self, other: &DmaDomainId) -> Ordering
fn cmp(&self, other: &DmaDomainId) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DmaDomainId
impl PartialEq for DmaDomainId
Source§fn eq(&self, other: &DmaDomainId) -> bool
fn eq(&self, other: &DmaDomainId) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for DmaDomainId
impl PartialOrd for DmaDomainId
impl StructuralPartialEq for DmaDomainId
Auto Trait Implementations§
impl Freeze for DmaDomainId
impl RefUnwindSafe for DmaDomainId
impl Send for DmaDomainId
impl Sync for DmaDomainId
impl Unpin for DmaDomainId
impl UnsafeUnpin for DmaDomainId
impl UnwindSafe for DmaDomainId
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