⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

Module smp

Module smp 

Source
Expand description

Symmetric multiprocessing (SMP) support

Structs§

CpuFeatures
CPU features
CpuInfo
CPU information
CpuTopology
CPU topology information
NumaNode
NUMA node information
PerCpuData
Per-CPU data

Constants§

MAX_CPUS
Maximum number of CPUs Reduced from 256 to 16 for bootloader 0.11 compatibility (reduces static data size)

Functions§

cpu_down
CPU hotplug: bring CPU offline
cpu_up
CPU hotplug: bring CPU online
current_cpu_id
Get current CPU ID
find_least_loaded_cpu
Find least loaded CPU
find_least_loaded_cpu_with_affinity
Find least loaded CPU that matches affinity mask
init
Initialize SMP support
init_cpu
Initialize specific CPU
migrate_task
Load balancing: migrate task between CPUs
per_cpu
Get per-CPU data for specific CPU
send_ipi
Send inter-processor interrupt
this_cpu
Get per-CPU data for current CPU