ReactOS
0.4.16-dev-1279-gc894716
processor.c
Go to the documentation of this file.
1
/*
2
* PROJECT: ReactOS Kernel
3
* LICENSE: MIT (https://spdx.org/licenses/MIT)
4
* PURPOSE: Portable processor related routines
5
* COPYRIGHT: Copyright 2025 Timo Kreuzer <timo.kreuzer@reactos.org>
6
*/
7
8
/* INCLUDES ******************************************************************/
9
10
#include <ntoskrnl.h>
11
#define NDEBUG
12
#include <debug.h>
13
14
/* GLOBALS *******************************************************************/
15
16
KAFFINITY
KeActiveProcessors
= 0;
17
18
/* Number of processors */
19
CCHAR
KeNumberProcessors
= 0;
20
21
#ifdef CONFIG_SMP
22
23
/* Theoretical maximum number of processors that can be handled.
24
* Set once at run-time. Returned by KeQueryMaximumProcessorCount(). */
25
ULONG
KeMaximumProcessors =
MAXIMUM_PROCESSORS
;
26
27
/* Maximum number of logical processors that can be started
28
* (including dynamically) at run-time. If 0: do not perform checks. */
29
ULONG
KeNumprocSpecified = 0;
30
31
/* Maximum number of logical processors that can be started
32
* at boot-time. If 0: do not perform checks. */
33
ULONG
KeBootprocSpecified = 0;
34
35
#endif
// CONFIG_SMP
36
37
/* FUNCTIONS *****************************************************************/
38
39
KAFFINITY
40
NTAPI
41
KeQueryActiveProcessors
(
VOID
)
42
{
43
return
KeActiveProcessors
;
44
}
KAFFINITY
ULONG_PTR KAFFINITY
Definition:
compat.h:85
MAXIMUM_PROCESSORS
#define MAXIMUM_PROCESSORS
Definition:
rwlock.h:5
void
Definition:
nsiface.idl:2307
KeNumberProcessors
CCHAR KeNumberProcessors
Definition:
processor.c:19
KeActiveProcessors
KAFFINITY KeActiveProcessors
Definition:
processor.c:16
KeQueryActiveProcessors
KAFFINITY NTAPI KeQueryActiveProcessors(VOID)
Definition:
processor.c:41
NTAPI
#define NTAPI
Definition:
typedefs.h:36
ULONG
uint32_t ULONG
Definition:
typedefs.h:59
CCHAR
char CCHAR
Definition:
typedefs.h:51
ntoskrnl
ke
processor.c
Generated on Fri Jun 13 2025 06:06:55 for ReactOS by
1.9.6