Function redbpf::cpus::get_online [−][src]
Expand description
Returns a list of online CPU IDs.
Error handling in this function is deliberately crashy If the kernel returns with invalid data, it’s OK to crash If the kernel returns with different data format, it’s OK to crash If the user is trying to feed us invalid data, it’s OK to crash
The only time an error is reported is when
/sys/devices/system/cpu/online
can’t be opened.