HyperDbg/hyperdbg/include/platform/kernel/header/PlatformCpu.h
2026-08-01 17:08:20 +02:00

27 lines
667 B
C

/**
* @file PlatformCpu.h
* @author Sina Karvandi (sina@hyperdbg.org)
* @brief Cross platform APIs for CPU and processor queries
* @details
* @version 0.19
* @date 2026-05-09
*
* @copyright This project is released under the GNU Public License v3.
*
*/
#pragma once
#if defined(__linux__)
# include "../../../../include/SDK/HyperDbgSdk.h"
# include <linux/cpumask.h>
#endif // defined(__linux__)
//////////////////////////////////////////////////
// Functions //
//////////////////////////////////////////////////
ULONG
PlatformCpuGetActiveProcessorCount(VOID);
ULONG
PlatformCpuGetCurrentProcessorNumber(VOID);