ReactOS  0.4.15-dev-3428-g0609db5
ke.c File Reference
#include <ntdef.h>
#include <ntifs.h>
Include dependency graph for ke.c:

Go to the source code of this file.

Functions

NTKRNLVISTAAPI ULONG NTAPI KeQueryActiveProcessorCount (OUT PKAFFINITY ActiveProcessors OPTIONAL)
 
NTKRNLVISTAAPI USHORT NTAPI KeQueryHighestNodeNumber ()
 
NTKRNLVISTAAPI USHORT NTAPI KeGetCurrentNodeNumber ()
 
 _IRQL_requires_max_ (DISPATCH_LEVEL)
 

Function Documentation

◆ _IRQL_requires_max_()

_IRQL_requires_max_ ( DISPATCH_LEVEL  )

Definition at line 45 of file ke.c.

55 {
56  return KeSetTimerEx(Timer, DueTime, Period, Dpc);
57 }
_Must_inspect_result_ _In_ PWDF_DPC_CONFIG _In_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFDPC * Dpc
Definition: wdfdpc.h:107
_In_ LARGE_INTEGER _In_ ULONG Period
Definition: kefuncs.h:1324
BOOLEAN NTAPI KeSetTimerEx(IN OUT PKTIMER Timer, IN LARGE_INTEGER DueTime, IN LONG Period, IN PKDPC Dpc OPTIONAL)
Definition: timerobj.c:294
_In_ WDFTIMER _In_ LONGLONG DueTime
Definition: wdftimer.h:187

◆ KeGetCurrentNodeNumber()

NTKRNLVISTAAPI USHORT NTAPI KeGetCurrentNodeNumber ( )

Definition at line 40 of file ke.c.

41 {
42  return 0;
43 }

◆ KeQueryActiveProcessorCount()

NTKRNLVISTAAPI ULONG NTAPI KeQueryActiveProcessorCount ( OUT PKAFFINITY ActiveProcessors  OPTIONAL)

Definition at line 15 of file ke.c.

16 {
18  KAFFINITY ActiveMap = KeQueryActiveProcessors();
19 
20  if (ActiveProcessors != NULL)
21  {
22  *ActiveProcessors = ActiveMap;
23  }
24 
25  RtlInitializeBitMap(&Bitmap, (PULONG)&ActiveMap, sizeof(ActiveMap) * 8);
26  return RtlNumberOfSetBits(&Bitmap);
27 }
NTSYSAPI void WINAPI RtlInitializeBitMap(PRTL_BITMAP, PULONG, ULONG)
NTSYSAPI ULONG WINAPI RtlNumberOfSetBits(PCRTL_BITMAP)
KAFFINITY NTAPI KeQueryActiveProcessors(VOID)
Definition: cpu.c:423
ULONG_PTR KAFFINITY
Definition: compat.h:85
unsigned int * PULONG
Definition: retypes.h:1
#define NULL
Definition: types.h:112

◆ KeQueryHighestNodeNumber()

NTKRNLVISTAAPI USHORT NTAPI KeQueryHighestNodeNumber ( )

Definition at line 32 of file ke.c.

33 {
34  return 0;
35 }