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

per_cpu_data_ptr

Function per_cpu_data_ptr 

Source
pub fn per_cpu_data_ptr() -> *mut PerCpuData
Expand description

Get a mutable pointer to the per-CPU data.

Used to update kernel_rsp on context switch and to set up KernelGsBase during init. The returned pointer is valid for the lifetime of the kernel.