KeGetCurrentProcessorIndex function (wdm.h)

KeGetCurrentProcessorIndex returns the index of the processor that the caller is running on.

Syntax

ULONG KeGetCurrentProcessorIndex();

Return value

KeGetCurrentProcessorIndex returns the system wide index of the logical processor the caller is running on.

Remarks

KeGetCurrentProcessorIndex is similar to KeGetCurrentProcessorNumber but rather than returning a PROCESSOR_NUMBER structure or a group relative index KeGetCurrentProcessorIndex behaves as if all the processors on the system were numbered 0..N-1 and returns a value between 0 and N-1 inclusive. The index is not guaranteed to be less than the result of KeQueryActiveProcessorCount but will be less than the result of KeQueryActiveProcessorCountEx(ALL_PROCESSOR_GROUPS).

Requirements

Requirement Value
Header wdm.h (include Wdm.h)

See also

KeGetCurrentProcessorNumber

KeGetCurrentProcessorNumberEx

KeQueryActiveProcessorCount

KeQueryActiveProcessorCountEx