kernel32: Implement GetNumaProcessorNode.
This commit is contained in:
parent
81142c9985
commit
d0ae2b0d3d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue