Module cpu

Source
Expand description

CPU-related definitions.

Modules§

local
CPU local storage.

Structs§

CpuId
The ID of a CPU in the system.
CpuIdFromIntError
The error type returned when converting an out-of-range integer to CpuId.

Enums§

PrivilegeLevel
The CPU privilege level: user mode or kernel mode.

Traits§

PinCurrentCpu
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.
num_cpus
Returns the number of CPUs.

Type Aliases§

AtomicCpuSet
A set of CPU IDs, with support for concurrent access.
CpuSet
A set of CPU IDs.