drm_gpusvm_driver_set_lock(9)
π 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 thegpuvalist. and listen, this one's important: the locking primitive must contain adep_mapfield. nodep_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:
- Kernel file
./include/drm/drm_gpusvm.h struct drm_gpusvm_ops(9)struct drm_gpusvm_notifier(9)struct drm_gpusvm_pages_flags(9)struct drm_gpusvm_pages(9)struct drm_gpusvm_range_flags(9)struct drm_gpusvm_range(9)struct drm_gpusvm(9)struct drm_gpusvm_ctx(9)drm_gpusvm_init_pages(9)enum drm_gpusvm_scan_result(9)drm_gpusvm_notifier_lock(9)drm_gpusvm_notifier_unlock(9)drm_gpusvm_range_start(9)drm_gpusvm_range_end(9)drm_gpusvm_range_size(9)drm_gpusvm_notifier_start(9)drm_gpusvm_notifier_end(9)drm_gpusvm_notifier_size(9)__drm_gpusvm_range_next(9)drm_gpusvm_for_each_range(9)drm_gpusvm_for_each_range_safe(9)__drm_gpusvm_notifier_next(9)drm_gpusvm_for_each_notifier(9)drm_gpusvm_for_each_notifier_safe(9)
ngl bestie, the one thing to remember here is thatdep_maprequirement onlock. 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
- 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