pub struct Processor {
pub processor_uid: u32,
pub local_apic_id: u32,
pub state: ProcessorState,
pub is_ap: bool,
}
Fields§
§processor_uid: u32
Corresponds to the _UID
object of the processor’s Device
, or the ProcessorId
field of the Processor
object, in AML.
local_apic_id: u32
The ID of the local APIC of the processor. Will be less than 256
if the APIC is being used, but can be
greater than this if the X2APIC is being used.
state: ProcessorState
The state of this processor. Check that the processor is not Disabled
before attempting to bring it up!
is_ap: bool
Whether this processor is the Bootstrap Processor (BSP), or an Application Processor (AP). When the bootloader is entered, the BSP is the only processor running code. To run code on more than one processor, you need to “bring up” the APs.
Trait Implementations§
source§impl PartialEq<Processor> for Processor
impl PartialEq<Processor> for Processor
impl Copy for Processor
impl Eq for Processor
impl StructuralEq for Processor
impl StructuralPartialEq for Processor
Auto Trait Implementations§
impl RefUnwindSafe for Processor
impl Send for Processor
impl Sync for Processor
impl Unpin for Processor
impl UnwindSafe for Processor
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