resctrl_arch_pseudo_lock_fn(9)
β¨ resctrl_arch_pseudo_lock_fn β¨
okay so this is a page from the Kernel API Manual bestie, and it's all about resctrl_arch_pseudo_lock_fn β like, the whole entire vibe is "load kernel memory into cache" and honestly? iconic behavior. π
πΈ NAME πΈ
resctrl_arch_pseudo_lock_fn β load kernel memory into cache, no cap π§
π¦ SYNOPSIS π¦
int resctrl_arch_pseudo_lock_fn (void *_plr );
π ARGUMENTS π
_plrβ the pseudo-lock region descriptor. yes bestie, this is THE descriptor, the main character of the whole operation π
π DESCRIPTION π
okay so listen. this is the core pseudo-locking flow, like the actual heart of it. π«Ά
First we ensure that the kernel memory cannot be found in the cache. literally cannot be found. it's giving hide and seek but make it silicon. π
Then β and this is the part where we're all holding our breath β while taking care that there will be as little interference as possible, the memory to be loaded is accessed while the core is running with class of service set to the bitmask of the pseudo-locked region. yes, that whole sentence, we said it, it's real, it matters. π After this is complete, no future CAT allocations will be allowed to overlap with this bitmask. periodt. that boundary is CLOSED. π«
Local register variables are utilized to ensure that the memory region to be locked is the only memory access made during the critical locking loop. like, the only one. the critical locking loop said "no distractions" and honestly same tbh. β¨
π RETURN π
0β Waiter on waitqueue will be woken on completion. so like, congrats, somebody's waking up π
π SEE ALSO π
- Kernel file
./arch/x86/kernel/cpu/resctrl/pseudo_lock.c resctrl_arch_get_prefetch_disable_bits(9)resctrl_arch_measure_cycles_lat_fn(9)
go read those too, iykyk π
and that's the whole page bestie!! this lil masterpiece lives under ./arch/x86/kernel/cpu/resctrl, dated October 2026, and it's brought to you by the Kernel API Manual β slay, goodbye, mwah π©·π₯π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms