Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
631473ff
Commit
631473ff
authored
Apr 09, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Apr 10, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntoskrnl.exe: Implement ExGetExclusiveWaiterCount().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
810227f7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
1 deletion
+21
-1
ntoskrnl.exe.spec
dlls/ntoskrnl.exe/ntoskrnl.exe.spec
+1
-1
sync.c
dlls/ntoskrnl.exe/sync.c
+19
-0
wdm.h
include/ddk/wdm.h
+1
-0
No files found.
dlls/ntoskrnl.exe/ntoskrnl.exe.spec
View file @
631473ff
...
@@ -146,7 +146,7 @@
...
@@ -146,7 +146,7 @@
@ stub ExFreeToPagedLookasideList
@ stub ExFreeToPagedLookasideList
@ stub ExGetCurrentProcessorCounts
@ stub ExGetCurrentProcessorCounts
@ stub ExGetCurrentProcessorCpuUsage
@ stub ExGetCurrentProcessorCpuUsage
@ st
ub ExGetExclusiveWaiterCount
@ st
dcall ExGetExclusiveWaiterCount(ptr)
@ stub ExGetPreviousMode
@ stub ExGetPreviousMode
@ stub ExGetSharedWaiterCount
@ stub ExGetSharedWaiterCount
@ stdcall ExInitializeNPagedLookasideList(ptr ptr ptr long long long long)
@ stdcall ExInitializeNPagedLookasideList(ptr ptr ptr long long long long)
...
...
dlls/ntoskrnl.exe/sync.c
View file @
631473ff
...
@@ -1087,3 +1087,22 @@ void WINAPI ExReleaseResourceLite( ERESOURCE *resource )
...
@@ -1087,3 +1087,22 @@ void WINAPI ExReleaseResourceLite( ERESOURCE *resource )
{
{
ExReleaseResourceForThreadLite
(
resource
,
(
ERESOURCE_THREAD
)
KeGetCurrentThread
()
);
ExReleaseResourceForThreadLite
(
resource
,
(
ERESOURCE_THREAD
)
KeGetCurrentThread
()
);
}
}
/***********************************************************************
* ExGetExclusiveWaiterCount (NTOSKRNL.EXE.@)
*/
ULONG
WINAPI
ExGetExclusiveWaiterCount
(
ERESOURCE
*
resource
)
{
ULONG
count
;
KIRQL
irql
;
TRACE
(
"resource %p.
\n
"
,
resource
);
KeAcquireSpinLock
(
&
resource
->
SpinLock
,
&
irql
);
count
=
resource
->
NumberOfExclusiveWaiters
;
KeReleaseSpinLock
(
&
resource
->
SpinLock
,
irql
);
return
count
;
}
include/ddk/wdm.h
View file @
631473ff
...
@@ -1524,6 +1524,7 @@ void WINAPI ExDeleteNPagedLookasideList(PNPAGED_LOOKASIDE_LIST);
...
@@ -1524,6 +1524,7 @@ void WINAPI ExDeleteNPagedLookasideList(PNPAGED_LOOKASIDE_LIST);
NTSTATUS
WINAPI
ExDeleteResourceLite
(
ERESOURCE
*
);
NTSTATUS
WINAPI
ExDeleteResourceLite
(
ERESOURCE
*
);
void
WINAPI
ExFreePool
(
PVOID
);
void
WINAPI
ExFreePool
(
PVOID
);
void
WINAPI
ExFreePoolWithTag
(
PVOID
,
ULONG
);
void
WINAPI
ExFreePoolWithTag
(
PVOID
,
ULONG
);
ULONG
WINAPI
ExGetExclusiveWaiterCount
(
ERESOURCE
*
);
void
WINAPI
ExInitializeNPagedLookasideList
(
PNPAGED_LOOKASIDE_LIST
,
PALLOCATE_FUNCTION
,
PFREE_FUNCTION
,
ULONG
,
SIZE_T
,
ULONG
,
USHORT
);
void
WINAPI
ExInitializeNPagedLookasideList
(
PNPAGED_LOOKASIDE_LIST
,
PALLOCATE_FUNCTION
,
PFREE_FUNCTION
,
ULONG
,
SIZE_T
,
ULONG
,
USHORT
);
NTSTATUS
WINAPI
ExInitializeResourceLite
(
ERESOURCE
*
);
NTSTATUS
WINAPI
ExInitializeResourceLite
(
ERESOURCE
*
);
PSLIST_ENTRY
WINAPI
ExInterlockedPopEntrySList
(
PSLIST_HEADER
,
PKSPIN_LOCK
);
PSLIST_ENTRY
WINAPI
ExInterlockedPopEntrySList
(
PSLIST_HEADER
,
PKSPIN_LOCK
);
...
...
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