Function redbpf::cpus::get_possible_num[][src]

pub fn get_possible_num() -> usize
Expand description

Returns the number of possible CPUs.

The number of possible CPUs is static after it is set during boot time discovery phase. For reference, see comments in kernel source: https://elixir.bootlin.com/linux/v5.8/source/arch/x86/kernel/smpboot.c#L1447