gpu_buddy_driver_set_lock(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 called mm, no we're not gonna question it πŸ’€
  • lock β€” the lock used to protect the gpu buddy. important: the locking primitive must contain a dep_map field. 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:

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