ReactOS 0.4.17-dev-470-gf9e3448
processor.c
Go to the documentation of this file.
1/*
2 * PROJECT: ReactOS runtime library (RTL)
3 * LICENSE: MIT (https://spdx.org/licenses/MIT)
4 * PURPOSE: Implementation of processor related routines
5 * COPYRIGHT: Copyright 2026 Timo Kreuzer <timo.kreuzer@reactos.org>
6 */
7
8/* INCLUDES *****************************************************************/
9
10#include <rtl.h>
11
12#define NDEBUG
13#include <debug.h>
14
15/* FUNCTIONS *****************************************************************/
16
17
21 _In_ ULONG ProcessorFeature)
22{
23 if (ProcessorFeature >= RTL_NUMBER_OF(SharedUserData->ProcessorFeatures))
24 {
25 return FALSE;
26 }
27
28 return SharedUserData->ProcessorFeatures[ProcessorFeature] != 0;
29}
30
34 VOID)
35{
37}
38
39VOID
42 _Out_ PPROCESSOR_NUMBER ProcessorNumber)
43{
44 NtGetCurrentProcessorNumberEx(ProcessorNumber);
45}
#define RTL_NUMBER_OF(x)
Definition: RtlRegistry.c:12
unsigned char BOOLEAN
Definition: actypes.h:127
#define FALSE
Definition: types.h:117
#define _Out_
Definition: no_sal2.h:160
#define _In_
Definition: no_sal2.h:158
* PPROCESSOR_NUMBER
Definition: ntbasedef.h:654
NTSTATUS NTAPI NtGetCurrentProcessorNumberEx(_Out_ PPROCESSOR_NUMBER ProcessorNumber)
Definition: processor.c:55
#define SharedUserData
BOOLEAN NTAPI RtlIsProcessorFeaturePresent(_In_ ULONG ProcessorFeature)
Definition: processor.c:20
VOID NTAPI RtlGetCurrentProcessorNumberEx(_Out_ PPROCESSOR_NUMBER ProcessorNumber)
Definition: processor.c:41
ULONG NTAPI RtlGetCurrentProcessorNumber(VOID)
Definition: processor.c:33
#define NTAPI
Definition: typedefs.h:36
uint32_t ULONG
Definition: typedefs.h:59
NTSYSAPI ULONG WINAPI NtGetCurrentProcessorNumber(void)
Definition: sysinfo.c:3162