Expand description
CPU-related definitions.
Re-exportsΒ§
pub use set::AtomicCpuSet;
pub use set::CpuSet;
ModulesΒ§
- context
- CPU execution context control.
- local
- CPU local storage.
- set
- This module contains the implementation of the CPU set and atomic CPU set.
StructsΒ§
- CpuId
- The ID of a CPU in the system.
- CpuId
From IntError - The error type returned when converting an out-of-range integer to
CpuId
.
StaticsΒ§
- CURRENT_
CPU π - The current CPU ID.
- IS_
CURRENT_ πCPU_ INITED - The initialization state of the current CPU ID.
- NUM_
CPUS π - The number of CPUs.
TraitsΒ§
- PinCurrent
Cpu - A marker trait for guard types that can βpinβ the current task to the current CPU.
FunctionsΒ§
- all_
cpus - Returns an iterator over all CPUs.
- init_
num_ π βcpus - Initializes the number of CPUs.
- init_
on_ π βap - This function should be executed after BSP has booted before APs have not booted.cpu_id should be the CPU ID of the AP in the execution.
- init_
on_ π βbsp - This function should be executed after BSP has booted before APs have not booted.This function should be executed after
crate::arch::kernel::apic::init
.The CPU-local objects should bot be accessed. - num_
cpus - Returns the number of CPUs.
- set_
this_ π βcpu_ id - Initializes the current CPU ID. During the early boot phase