Author: pschweitzer
Date: Mon Jul 25 20:45:48 2016
New Revision: 72001
URL:
http://svn.reactos.org/svn/reactos?rev=72001&view=rev
Log:
[NTOSKRNL_VISTA]
Implement KeQueryActiveProcessorCount().
CORE-11674
Added:
trunk/reactos/sdk/lib/drivers/ntoskrnl_vista/ke.c (with props)
Modified:
trunk/reactos/sdk/lib/drivers/ntoskrnl_vista/CMakeLists.txt
Modified: trunk/reactos/sdk/lib/drivers/ntoskrnl_vista/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/sdk/lib/drivers/ntoskrnl_v…
==============================================================================
--- trunk/reactos/sdk/lib/drivers/ntoskrnl_vista/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/sdk/lib/drivers/ntoskrnl_vista/CMakeLists.txt [iso-8859-1] Mon Jul 25
20:45:48 2016
@@ -5,6 +5,7 @@
list(APPEND SOURCE
fsrtl.c
+ ke.c
rtl.c)
add_library(ntoskrnl_vista ${SOURCE})
Added: trunk/reactos/sdk/lib/drivers/ntoskrnl_vista/ke.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/sdk/lib/drivers/ntoskrnl_v…
==============================================================================
--- trunk/reactos/sdk/lib/drivers/ntoskrnl_vista/ke.c (added)
+++ trunk/reactos/sdk/lib/drivers/ntoskrnl_vista/ke.c [iso-8859-1] Mon Jul 25 20:45:48
2016
@@ -0,0 +1,27 @@
+/*
+ * PROJECT: ReactOS Kernel - Vista+ APIs
+ * LICENSE: GPL v2 - See COPYING in the top level directory
+ * FILE: lib/drivers/ntoskrnl_vista/ke.c
+ * PURPOSE: Ke functions of Vista+
+ * PROGRAMMERS: Pierre Schweitzer <pierre(a)reactos.org>
+ */
+
+#include <ntdef.h>
+#include <ntifs.h>
+
+NTKERNELAPI
+ULONG
+NTAPI
+KeQueryActiveProcessorCount(OUT PKAFFINITY ActiveProcessors OPTIONAL)
+{
+ RTL_BITMAP Bitmap;
+ KAFFINITY ActiveMap = KeQueryActiveProcessors();
+
+ if (ActiveProcessors != NULL)
+ {
+ *ActiveProcessors = ActiveMap;
+ }
+
+ RtlInitializeBitMap(&Bitmap, &ActiveMap, sizeof(ActiveMap) * 8);
+ return RtlNumberOfSetBits(&Bitmap);
+}
Propchange: trunk/reactos/sdk/lib/drivers/ntoskrnl_vista/ke.c
------------------------------------------------------------------------------
svn:eol-style = native