pub struct Ivrs {
header: &'static IvrsHeader,
}Expand description
Top-level IVRS table wrapper.
Fields§
§header: &'static IvrsHeaderImplementations§
Source§impl Ivrs
impl Ivrs
Sourcepub fn header(&self) -> &'static IvrsHeader
pub fn header(&self) -> &'static IvrsHeader
Return a reference to the parsed header.
Sourcepub fn blocks(&self) -> IvrsEntryIter<'_>
pub fn blocks(&self) -> IvrsEntryIter<'_>
Iterate over all IVHD/IVMD blocks.
Sourcepub fn iommu_count(&self) -> usize
pub fn iommu_count(&self) -> usize
Return the number of IOMMU units described by IVHD blocks.
Sourcepub fn ivhd_blocks(&self) -> Vec<IvhdBlock>
pub fn ivhd_blocks(&self) -> Vec<IvhdBlock>
Collect all IVHD (IOMMU) blocks into a Vec.
Sourcepub fn ivmd_blocks(&self) -> Vec<IvmdBlock>
pub fn ivmd_blocks(&self) -> Vec<IvmdBlock>
Collect all IVMD (reserved memory) blocks into a Vec.
Auto Trait Implementations§
impl Freeze for Ivrs
impl RefUnwindSafe for Ivrs
impl Send for Ivrs
impl Sync for Ivrs
impl Unpin for Ivrs
impl UnsafeUnpin for Ivrs
impl UnwindSafe for Ivrs
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more