Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Simple-XX/SimpleKernel
/ GetCurrentCore
Function
GetCurrentCore
src/include/per_cpu.hpp:55–57 ·
view source on GitHub ↗
@brief 获取当前核心的 PerCpu 数据
Source
from the content-addressed store, hash-verified
53
54
/// @brief 获取当前核心的 PerCpu 数据
55
static __always_inline auto GetCurrentCore() -> PerCpu& {
56
return PerCpuArraySingleton::instance()[cpu_io::GetCurrentCoreId()];
57
}
58
59
} // namespace per_cpu
Callers
12
main_smp
Function · 0.85
main
Function · 0.85
InitCurrentCore
Method · 0.85
AddTask
Method · 0.85
Schedule
Method · 0.85
GetCurrentTask
Method · 0.85
test_tick_increments
Function · 0.85
test_sleep_timing
Function · 0.85
test_runtime_tracking
Function · 0.85
main_smp
Function · 0.85
main
Function · 0.85
switch_to
Function · 0.85
Calls
1
GetCurrentCoreId
Function · 0.85
Tested by
3
test_tick_increments
Function · 0.68
test_sleep_timing
Function · 0.68
test_runtime_tracking
Function · 0.68