pub enum ApicId {
XApic(u8),
X2Apic(u32),
}
Expand description
Encodes the id of a core.
Variants§
XApic(u8)
A core destination encoded as an xAPIC ID.
X2Apic(u32)
A core destination encoded as an x2APIC ID.
Implementations§
Source§impl ApicId
impl ApicId
Sourcepub fn x2apic_logical_id(&self) -> u32
pub fn x2apic_logical_id(&self) -> u32
Returns the Logical x2APIC ID.
In x2APIC mode, the 32-bit logical x2APIC ID, which can be read from LDR, is derived from the 32-bit local x2APIC ID: Logical x2APIC ID = [(x2APIC ID[19:4] « 16) | (1 « x2APIC ID[3:0])]
Sourcepub fn x2apic_logical_cluster_address(&self) -> u32
pub fn x2apic_logical_cluster_address(&self) -> u32
Returns the logical address relative to a cluster for a given APIC ID (assuming x2APIC addressing).
Sourcepub fn x2apic_logical_cluster_id(&self) -> u32
pub fn x2apic_logical_cluster_id(&self) -> u32
Returns the cluster ID a given APIC ID belongs to (assuming x2APIC addressing).
Trait Implementations§
impl Copy for ApicId
impl Eq for ApicId
impl StructuralPartialEq for ApicId
Auto Trait Implementations§
impl Freeze for ApicId
impl RefUnwindSafe for ApicId
impl Send for ApicId
impl Sync for ApicId
impl Unpin for ApicId
impl UnwindSafe for ApicId
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