pub struct MadtParser<'a>(/* private fields */);
Expand description
A MADT parser that can be iterated through for different MadtEntry
.
Implementations§
Source§impl<'a> MadtParser<'a>
impl<'a> MadtParser<'a>
Sourcepub fn new(table: &'a [u8]) -> Result<Self, ParserError>
pub fn new(table: &'a [u8]) -> Result<Self, ParserError>
Partially an MADT table.
Sourcepub fn parse_apic_ids(&self) -> Result<Vec<Option<u32>>, ParseApicIdError>
pub fn parse_apic_ids(&self) -> Result<Vec<Option<u32>>, ParseApicIdError>
Parse apic_ids from the given MADT for enabled processors. Returned as a
Vec<Option<u32>>
with element 0 being processor_acpi_uid 1.
Auto Trait Implementations§
impl<'a> Freeze for MadtParser<'a>
impl<'a> RefUnwindSafe for MadtParser<'a>
impl<'a> Send for MadtParser<'a>
impl<'a> Sync for MadtParser<'a>
impl<'a> Unpin for MadtParser<'a>
impl<'a> UnwindSafe for MadtParser<'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