#include <oskit/smp.h>int smp_find_cur_cpu(void);
This function returns a unique (per-processor) integer representing the current processor. Note that the numbers are not guaranteed to be sequential or starting from 0, although that may be a common case.On the x86, these numbers correspond to the processor's APIC ID, which is set by the hardware. However, these are to be treated as logical processor numbers since the smp library may do a transformation in the future.
The processor's ID.