#[repr(C)]pub struct MpServices { /* private fields */ }
Expand description
Protocol that provides services needed for multi-processor management.
Implementations§
source§impl MpServices
impl MpServices
sourcepub fn get_number_of_processors(&self) -> Result<ProcessorCount>
pub fn get_number_of_processors(&self) -> Result<ProcessorCount>
Retrieves the number of logical processors and the number of enabled logical processors in the system.
sourcepub fn get_processor_info(
&self,
processor_number: usize
) -> Result<ProcessorInformation>
pub fn get_processor_info( &self, processor_number: usize ) -> Result<ProcessorInformation>
Gets detailed information on the requested processor at the instant this call is made.
sourcepub fn startup_all_aps(
&self,
single_thread: bool,
procedure: Procedure,
procedure_argument: *mut c_void,
event: Option<Event>,
timeout: Option<Duration>
) -> Result
pub fn startup_all_aps( &self, single_thread: bool, procedure: Procedure, procedure_argument: *mut c_void, event: Option<Event>, timeout: Option<Duration> ) -> Result
Executes provided function on all APs.
sourcepub fn startup_this_ap(
&self,
processor_number: usize,
procedure: Procedure,
procedure_argument: *mut c_void,
event: Option<Event>,
timeout: Option<Duration>
) -> Result
pub fn startup_this_ap( &self, processor_number: usize, procedure: Procedure, procedure_argument: *mut c_void, event: Option<Event>, timeout: Option<Duration> ) -> Result
Executes provided function on a specific AP in blocking mode.
sourcepub fn switch_bsp(
&self,
processor_number: usize,
enable_old_bsp: bool
) -> Result
pub fn switch_bsp( &self, processor_number: usize, enable_old_bsp: bool ) -> Result
Switches the requested AP to be the BSP from that point onward.
Trait Implementations§
source§impl Debug for MpServices
impl Debug for MpServices
impl Protocol for MpServices
Auto Trait Implementations§
impl Freeze for MpServices
impl RefUnwindSafe for MpServices
impl Send for MpServices
impl Sync for MpServices
impl Unpin for MpServices
impl UnwindSafe for MpServices
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