GPU_BUDDY_CLEAR_ALLOCATION(9)
π NAME π
GPU_BUDDY_CLEAR_ALLOCATION β bestie, it's giving "prefer pre-cleared (zeroed) memory" β¨
So like, this is the flag that says hey, hand me the clean stuff first π§
β¨ SYNOPSIS β¨
GPU_BUDDY_CLEAR_ALLOCATION
That's it. That's the whole synopsis. No arguments, no parameters, no little extras β just the name and vibes π (this page lives in the Kernel API Manual, section 9, iykyk π)
πΈ DESCRIPTION πΈ
Okay so here's the tea β β when you use this, the allocator will attempt to allocate from the clear tree first. Clean memory, zeroed memory, the good stuff π«Ά
But if there's insufficient clear memory available, it falls back to dirty memory. No cap, that's the whole deal β it tries clean, and if clean is running low it settles for dirty instead of just giving up π
And when is this lowkey iconic? When the caller needs zeroed memory and wants to avoid GPU clear operations β you skip the whole extra clear step and just take memory that's already been pre-cleared. Efficiency, main character energy ππ₯
β vibe check: it's a preference, not a guarantee β the fallback to dirty memory is built right in, so don't come for it when it does exactly what the page says π
π¦ SEE ALSO π¦
Go read the whole friend group, fr fr π
- Kernel file
./include/linux/gpu_buddy.h GPU_BUDDY_RANGE_ALLOCATION(9)GPU_BUDDY_TOPDOWN_ALLOCATION(9)GPU_BUDDY_CONTIGUOUS_ALLOCATION(9)GPU_BUDDY_CLEARED(9)GPU_BUDDY_TRIM_DISABLE(9)struct gpu_buddy_block(9)struct gpu_buddy(9)gpu_buddy_driver_set_lock(9)gpu_buddy_driver_lock_held(9)
slay, you made it to the end ππ This cutie lives in <pink>./include/linux</pink>, dated October 2026, and the manual is the Kernel API Manual β GPU_BUDDY_CLEAR_ALLOCATION(9), periodt π
β¨
π¦ 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