gpu_buddy_driver_set_lock(9)
π gpu_buddy_driver_set_lock π
okay bestie, so this is a kernel API manual page for gpu_buddy_driver_set_lock(9) β yes that's the function and the man page section, we love a name that does both π
β¨ NAME β¨
gpu_buddy_driver_set_lock β sets the lock that protects accesses to GPU BUDDY ππ¦
πΈ SYNOPSIS πΈ
gpu_buddy_driver_set_lock (mm , lock );
like, that's the whole call, no cap β¨
π§ ARGUMENTS π§
mmβ pointer to the GPU buddy structure. yes it's calledmm, no we're not gonna question it πlockβ the lock used to protect the gpu buddy. important: the locking primitive must contain adep_mapfield. that's not a suggestion, that's the vibe check, and if your lock fails it, bestie, it fails π
π DESCRIPTION π
Call this to annotate gpu_buddy APIs which access/modify the gpu_buddy manager π«Ά
that's literally it β it's an annotation situation, the main character move that tells everyone which lock is guarding the gpu_buddy manager π β¨
π SEE ALSO π
Kernel file ./include/linux/gpu_buddy.h, plus the whole squad:
GPU_BUDDY_RANGE_ALLOCATION(9)GPU_BUDDY_TOPDOWN_ALLOCATION(9)GPU_BUDDY_CONTIGUOUS_ALLOCATION(9)GPU_BUDDY_CLEAR_ALLOCATION(9)GPU_BUDDY_CLEARED(9)GPU_BUDDY_TRIM_DISABLE(9)struct gpu_buddy_block(9)struct gpu_buddy(9)gpu_buddy_driver_lock_held(9)
go read gpu_buddy_driver_lock_held(9) next, it's giving sequel energy ππ₯
sign-off time π this one lives in ./include/linux, dated October 2026 β so yeah, future vibes, screenshot it and study later iykyk ππ¦β
π¦ 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