drm_gpusvm_driver_set_lock(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_gpusvm_driver_set_lock(9) β€” like, the actual Kernel API Manual, bestie πŸŽ€

okay so picture this: it's drm_gpusvm_driver_set_lock(9), straight outta the Kernel API Manual, and she's here to tell you which lock is guarding the GPU SVM. that's the whole vibe. let's get into it ✨


🌸 NAME 🌸

drm_gpusvm_driver_set_lock β€” she sets the lock that protects accesses to GPU SVM, and honestly? iconic of her πŸ’…


⭐ SYNOPSIS ⭐

drm_gpusvm_driver_set_lock (gpusvm , lock );

literally just two args, no cap 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • gpusvm β€” a pointer to the GPU SVM structure. that's your girl, she's the whole point πŸ’–
  • lock β€” the lock used to protect the gpuva list. and listen, this one's important: the locking primitive must contain a dep_map field. no dep_map, no deal, periodt πŸ™ˆ

πŸ”₯ DESCRIPTION πŸ”₯

so like, you call this to annotate drm_gpusvm_range_find_or_insert and drm_gpusvm_range_remove. that's it. that's the tea β˜• it's giving "lockdep annotation, but make it cute" and we're obsessed πŸ’œ


πŸ‘‘ SEE ALSO πŸ‘‘

the whole friend group, in the order the manpage says, fr fr β€” no skipping, i don't make the rules:


ngl bestie, the one thing to remember here is that dep_map requirement on lock. everything else you can look up. that one you cannot, so don't come for me 😭

okay that's the page!! mwah πŸ’‹ this little gem lives in ./include/drm, it's dated October 2026, and it goes by drm_gpusvm_driver_set_lock(9) β€” stan her, she's a whole main character πŸŒˆβ­πŸ“

πŸ“¦ where this page comes from