#[repr(C)]pub struct MpServices { /* private fields */ }
Expand description
Protocol that provides services needed for multi-processor management.
Implementations
sourceimpl 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,
timeout: Option<Duration>
) -> Result
pub fn startup_all_aps(
&self,
single_thread: bool,
procedure: Procedure,
procedure_argument: *mut c_void,
timeout: Option<Duration>
) -> Result
Executes provided function on all APs in blocking mode.
sourcepub fn startup_this_ap(
&self,
processor_number: usize,
procedure: Procedure,
procedure_argument: *mut c_void,
timeout: Option<Duration>
) -> Result
pub fn startup_this_ap(
&self,
processor_number: usize,
procedure: Procedure,
procedure_argument: *mut c_void,
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
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more