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

per_cpu_alloc_frame

Function per_cpu_alloc_frame 

Source
pub fn per_cpu_alloc_frame() -> Result<FrameNumber>
Expand description

Allocate a single physical frame using the per-CPU cache.

Fast path: no global lock contention for single-frame allocs. Falls back to global allocator if cache is empty and refill fails.