ReactOS  0.4.15-dev-1201-gb2cf5a4
ke.c
Go to the documentation of this file.
1 /*
2  * PROJECT: ReactOS Kernel - Vista+ APIs
3  * LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later)
4  * PURPOSE: Ke functions of Vista+
5  * COPYRIGHT: 2016 Pierre Schweitzer (pierre@reactos.org)
6  * 2020 Victor Perevertkin (victor.perevertkin@reactos.org)
7  */
8 
9 #include <ntdef.h>
10 #include <ntifs.h>
11 
13 ULONG
14 NTAPI
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 }
28 
30 USHORT
31 NTAPI
33 {
34  return 0;
35 }
36 
38 USHORT
39 NTAPI
41 {
42  return 0;
43 }
44 
47 BOOLEAN
48 NTAPI
49 KeSetCoalescableTimer(
55 {
56  return KeSetTimerEx(Timer, DueTime, Period, Dpc);
57 }
_In_ LARGE_INTEGER _In_ ULONG _In_ ULONG TolerableDelay
Definition: kefuncs.h:1324
_In_ LARGE_INTEGER DueTime
Definition: kefuncs.h:511
NTSYSAPI void WINAPI RtlInitializeBitMap(PRTL_BITMAP, PULONG, ULONG)
#define NTKRNLVISTAAPI
_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
#define _In_opt_
Definition: no_sal2.h:213
_IRQL_requires_max_(DISPATCH_LEVEL)
Definition: ke.c:45
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
NTSYSAPI ULONG WINAPI RtlNumberOfSetBits(PCRTL_BITMAP)
KAFFINITY * PKAFFINITY
Definition: basetsd.h:197
unsigned char BOOLEAN
smooth NULL
Definition: ftsmooth.c:416
NTKRNLVISTAAPI USHORT NTAPI KeGetCurrentNodeNumber()
Definition: ke.c:40
NTKRNLVISTAAPI ULONG NTAPI KeQueryActiveProcessorCount(OUT PKAFFINITY ActiveProcessors OPTIONAL)
Definition: ke.c:15
_In_ LARGE_INTEGER _In_opt_ PKDPC Dpc
Definition: kefuncs.h:511
KAFFINITY NTAPI KeQueryActiveProcessors(VOID)
Definition: cpu.c:433
#define _Inout_
Definition: no_sal2.h:244
Definition: ketypes.h:687
#define DISPATCH_LEVEL
Definition: env_spec_w32.h:696
#define _In_
Definition: no_sal2.h:204
NTKRNLVISTAAPI USHORT NTAPI KeQueryHighestNodeNumber()
Definition: ke.c:32
unsigned short USHORT
Definition: pedump.c:61
ULONG_PTR KAFFINITY
Definition: compat.h:85
unsigned int * PULONG
Definition: retypes.h:1
#define OUT
Definition: typedefs.h:40
unsigned int ULONG
Definition: retypes.h:1
PULONG MinorVersion OPTIONAL
Definition: CrossNt.h:68