Expand Minimize

GetNumaNodeNumberFromHandle function

Retrieves the NUMA node associated with the file or I/O device represented by the specified file handle.

Syntax


BOOL GetNumaNodeNumberFromHandle(
  _In_   HANDLE hFile,
  _Out_  PUSHORT NodeNumber
);

Parameters

hFile [in]

A handle to a file or I/O device. Examples of I/O devices include files, file streams, volumes, physical disks, and sockets. For more information, see the CreateFile function.

NodeNumber [out]

A pointer to a variable to receive the number of the NUMA node associated with the specified file handle.

Return value

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error information, use GetLastError.

Remarks

If the specified handle does not have a node associated with it, the function returns FALSE. The value of the NodeNumber parameter is undetermined and should not be used.

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

Requirements

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

WinBase.h (include Windows.h)

Library

Kernel32.lib

DLL

Kernel32.dll

See also

CreateFile
NUMA Support

 

 

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.