Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
d0ae2b0d
Commit
d0ae2b0d
authored
Jun 29, 2015
by
Michael Müller
Committed by
Alexandre Julliard
Jun 29, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Implement GetNumaProcessorNode.
parent
81142c99
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
2 deletions
+24
-2
kernel32.spec
dlls/kernel32/kernel32.spec
+1
-1
process.c
dlls/kernel32/process.c
+21
-0
process.c
dlls/kernel32/tests/process.c
+1
-1
winbase.h
include/winbase.h
+1
-0
No files found.
dlls/kernel32/kernel32.spec
View file @
d0ae2b0d
...
...
@@ -746,7 +746,7 @@
@ stdcall GetNumaNodeProcessorMask(long ptr)
# @ stub GetNumaNodeProcessorMaskEx
# @ stub GetNumaProcessorMap
# @ stub GetNumaProcessorNode
@ stdcall GetNumaProcessorNode(long ptr)
# @ stub GetNumaProcessorNodeEx
# @ stub GetNumaProximityNode
# @ stub GetNumaProximityNodeEx
...
...
dlls/kernel32/process.c
View file @
d0ae2b0d
...
...
@@ -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.@)
*/
...
...
dlls/kernel32/tests/process.c
View file @
d0ae2b0d
...
...
@@ -2704,7 +2704,7 @@ static void test_GetNumaProcessorNode(void)
if
(
!
pGetNumaProcessorNode
)
{
skip
(
"GetNumaProcessorNode is missing
\n
"
);
win_
skip
(
"GetNumaProcessorNode is missing
\n
"
);
return
;
}
...
...
include/winbase.h
View file @
d0ae2b0d
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment