Skip to content

Latest commit

 

History

History
115 lines (80 loc) · 4.54 KB

nf-systemtopologyapi-getnumanodeprocessormaskex.md

File metadata and controls

115 lines (80 loc) · 4.54 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:systemtopologyapi.GetNumaNodeProcessorMaskEx
GetNumaNodeProcessorMaskEx function (systemtopologyapi.h)
Retrieves the processor mask for a node regardless of the processor group the node belongs to.
GetNumaNodeProcessorMaskEx
GetNumaNodeProcessorMaskEx function
base.getnumanodeprocessormaskex
systemtopologyapi/GetNumaNodeProcessorMaskEx
winbase/GetNumaNodeProcessorMaskEx
base\getnumanodeprocessormaskex.htm
ProcThread
4baf7193-aab3-4bd0-bc0a-60fd9277fc72
03/15/2021
GetNumaNodeProcessorMaskEx, GetNumaNodeProcessorMaskEx function, base.getnumanodeprocessormaskex, systemtopologyapi/GetNumaNodeProcessorMaskEx, winbase/GetNumaNodeProcessorMaskEx
systemtopologyapi.h
Windows.h
Windows
Windows 7 [desktop apps only]
Windows Server 2008 R2 [desktop apps only]
Kernel32.lib
Kernel32.dll
Windows
19H1
GetNumaNodeProcessorMaskEx
systemtopologyapi/GetNumaNodeProcessorMaskEx
c++
APIRef
kbSyntax
DllExport
kernel32.dll
API-MS-Win-Core-systemtopology-l1-1-0.dll
KernelBase.dll
API-MS-Win-DownLevel-Kernel32-l1-1-0.dll
API-MS-Win-Core-Systemtopology-L1-1-1.dll
GetNumaNodeProcessorMaskEx

GetNumaNodeProcessorMaskEx function

-description

Retrieves the processor mask for a node regardless of the processor group the node belongs to.

-parameters

-param Node [in]

The node number.

-param ProcessorMask [out]

A pointer to a GROUP_AFFINITY structure that receives the processor mask for the specified node. A processor mask is a bit vector in which each bit represents a processor and whether it is in the node.

If the specified node has no processors configured, the Mask member is zero and the Group member is undefined.

-returns

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero.

-remarks

The GetNumaNodeProcessorMaskEx function differs from GetNumaNodeProcessorMask in that it can retrieve the processor mask for a node regardless of the group the node belongs to. That is, the node does not have to be in the same group as the calling thread. The GetNumaNodeProcessorMask function can retrieve the processor mask only for nodes that are in the same group as the calling thread.

To retrieve the highest numbered node in the system, use the GetNumaHighestNodeNumber function. Note that this number is not guaranteed to equal the total number of nodes in the system.

To ensure that all threads for your process run on the same node, use the SetProcessAffinityMask function with a process affinity mask that specifies processors in the same node.

To compile an application that uses this function, set _WIN32_WINNT >= 0x0601. For more information, see Using the Windows Headers.

Note

Starting with TBD Release Iron, the behavior of this and other NUMA functions has been modified to better support systems with nodes containing more that 64 processors. For more information about this change, including information about enabling the old behavior of this API, see NUMA Support.

Behavior starting with TBD Release Iron

Each node is assigned a primary group by the system. The GROUP_AFFINITY returned by GetNumaNodeProcessorMaskEx is for the node's primary group.

Behavior in previous versions

The GROUP_AFFINITY for the specified node is returned.

-see-also

GROUP_AFFINITY

GetNumaNodeProcessorMask

NUMA Support

Processor Groups