https://git.reactos.org/?p=reactos.git;a=commitdiff;h=962b2fd66a224c76dda53…
commit 962b2fd66a224c76dda53ed3dda509f040c5ab2f
Author: Pierre Schweitzer <pierre(a)reactos.org>
AuthorDate: Sun Dec 9 20:32:59 2018 +0100
Commit: Pierre Schweitzer <pierre(a)reactos.org>
CommitDate: Sun Dec 9 20:54:40 2018 +0100
[NTOSKRNL] Implement SystemDpcBehaviourInformation query
---
ntoskrnl/ex/sysinfo.c | 16 +++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)
diff --git a/ntoskrnl/ex/sysinfo.c b/ntoskrnl/ex/sysinfo.c
index 1d8e1c539f..a7883d4944 100644
--- a/ntoskrnl/ex/sysinfo.c
+++ b/ntoskrnl/ex/sysinfo.c
@@ -1539,9 +1539,19 @@ QSI_DEF(SystemInterruptInformation)
/* Class 24 - DPC Behaviour Information */
QSI_DEF(SystemDpcBehaviourInformation)
{
- /* FIXME */
- DPRINT1("NtQuerySystemInformation - SystemDpcBehaviourInformation not
implemented\n");
- return STATUS_NOT_IMPLEMENTED;
+ PSYSTEM_DPC_BEHAVIOR_INFORMATION sdbi = (PSYSTEM_DPC_BEHAVIOR_INFORMATION)Buffer;
+
+ if (Size < sizeof(SYSTEM_DPC_BEHAVIOR_INFORMATION))
+ {
+ return STATUS_INFO_LENGTH_MISMATCH;
+ }
+
+ sdbi->DpcQueueDepth = KiMaximumDpcQueueDepth;
+ sdbi->MinimumDpcRate = KiMinimumDpcRate;
+ sdbi->AdjustDpcThreshold = KiAdjustDpcThreshold;
+ sdbi->IdealDpcRate = KiIdealDpcRate;
+
+ return STATUS_SUCCESS;
}
SSI_DEF(SystemDpcBehaviourInformation)