ReactOS
0.4.16-dev-983-g23ad936
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Variables
_
c
d
e
f
g
h
i
l
m
n
o
p
s
t
u
x
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
x
Enumerations
_
a
b
c
d
f
i
l
m
o
p
s
t
w
x
Enumerator
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
t
u
v
w
x
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Related Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
x
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Examples
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 Thu Apr 17 2025 06:07:09 for ReactOS by
1.9.6