Commit d0ae2b0d authored by Michael Müller's avatar Michael Müller Committed by Alexandre Julliard

kernel32: Implement GetNumaProcessorNode.

parent 81142c99
......@@ -746,7 +746,7 @@
@ stdcall GetNumaNodeProcessorMask(long ptr)
# @ stub GetNumaNodeProcessorMaskEx
# @ stub GetNumaProcessorMap
# @ stub GetNumaProcessorNode
@ stdcall GetNumaProcessorNode(long ptr)
# @ stub GetNumaProcessorNodeEx
# @ stub GetNumaProximityNode
# @ stub GetNumaProximityNodeEx
......
......@@ -3957,6 +3957,27 @@ BOOL WINAPI GetNumaAvailableMemoryNode(UCHAR node, PULONGLONG available_bytes)
return FALSE;
}
/***********************************************************************
* GetNumaProcessorNode (KERNEL32.@)
*/
BOOL WINAPI GetNumaProcessorNode(UCHAR processor, PUCHAR node)
{
SYSTEM_INFO si;
TRACE("(%d, %p)\n", processor, node);
GetSystemInfo( &si );
if (processor < si.dwNumberOfProcessors)
{
*node = 0;
return TRUE;
}
*node = 0xFF;
SetLastError(ERROR_INVALID_PARAMETER);
return FALSE;
}
/**********************************************************************
* GetProcessDEPPolicy (KERNEL32.@)
*/
......
......@@ -2704,7 +2704,7 @@ static void test_GetNumaProcessorNode(void)
if (!pGetNumaProcessorNode)
{
skip("GetNumaProcessorNode is missing\n");
win_skip("GetNumaProcessorNode is missing\n");
return;
}
......
......@@ -2052,6 +2052,7 @@ WINBASEAPI BOOL WINAPI GetNamedPipeHandleStateW(HANDLE,LPDWORD,LPDWORD,LP
#define GetNamedPipeHandleState WINELIB_NAME_AW(GetNamedPipeHandleState)
WINBASEAPI BOOL WINAPI GetNamedPipeInfo(HANDLE,LPDWORD,LPDWORD,LPDWORD,LPDWORD);
WINBASEAPI VOID WINAPI GetNativeSystemInfo(LPSYSTEM_INFO);
WINBASEAPI BOOL WINAPI GetNumaProcessorNode(UCHAR,PUCHAR);
WINADVAPI BOOL WINAPI GetNumberOfEventLogRecords(HANDLE,PDWORD);
WINADVAPI BOOL WINAPI GetOldestEventLogRecord(HANDLE,PDWORD);
WINBASEAPI BOOL WINAPI GetOverlappedResult(HANDLE,LPOVERLAPPED,LPDWORD,BOOL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment