Trait PowerIf

Source
pub trait PowerIf {
    // Required methods
    fn cpu_boot(cpu_id: usize, stack_top_paddr: usize);
    fn system_off() -> !;
}
Expand description

Power management interface.

Required Methods§

Source

fn cpu_boot(cpu_id: usize, stack_top_paddr: usize)

Available on crate feature smp only.

Bootstraps the given CPU core with the given initial stack (in physical address).

Where cpu_id is the logical CPU ID (0, 1, …, N-1, N is the number of CPU cores on the platform).

Source

fn system_off() -> !

Shutdown the whole system.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§