KeGetCurrentNodeNumber function (wdm.h)

The KeGetCurrentNodeNumber routine gets the NUMA node number for the logical processor that the caller is running on.

Syntax

USHORT KeGetCurrentNodeNumber();

Return value

KeGetCurrentNodeNumber returns the node number.

Remarks

In a non-uniform memory access (NUMA) multiprocessor architecture, a node is a collection of processors that share fast access to a region of memory. Memory access is non-uniform because a processor can access the memory in its node faster than it can access the memory in other nodes.

In a NUMA multiprocessor system that contains n nodes, the nodes are numbered from 0 to n-1. To get the highest node number (n-1) in the system, call the KeQueryHighestNodeNumber routine.

Requirements

Requirement Value
Minimum supported client Available in Windows 7 and later versions of Windows.
Target Platform Universal
Header wdm.h (include Ntddk.h, Wdm.h, Ntddk.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL Any level

See also

KeQueryHighestNodeNumber