Skip to main content

current_cpu_idx

Function current_cpu_idx 

Source
pub fn current_cpu_idx() -> Option<usize>
Expand description

Returns the current logical CPU index.

This prefers the kernel runtime interface. Before the kernel can provide a runtime answer, it falls back to the early boot CPU-index convention exposed by someboot.