drm_gpusvm_for_each_range(9)
π drm_gpusvm_for_each_range(9) β like, the whole kernel API manual vibe
okay so bestie, welcome to the drm_gpusvm_for_each_range(9) page β¨ this is the one from the Kernel API Manual, and it's literally all about looping over your GPU SVM ranges inside a notifier. no cap, it's a macro. let's get into it π«Ά
πΈ NAME πΈ
drm_gpusvm_for_each_range β iterate over GPU SVM ranges in a notifier π«
β¨ SYNOPSIS β¨
drm_gpusvm_for_each_range (range__ , notifier__ , start__ , end__ );
π ARGUMENTS π
range__β the iterator variable for the ranges, iykyk. if it's set, that means it's the start of the iterator. if it'sNULL, then the macro callsdrm_gpusvm_range_findto go get the range for you πnotifier__β pointer to the GPU SVM notifier πstart__β start address of the range βend__β end address of the range π
π¦ DESCRIPTION π¦
so this macro is the one you use to iterate over GPU SVM ranges in a notifier. that's the whole glow-up π€©
and here's the part that lowkey matters: it is safe to use while holding the driver SVM lock or the notifier lock. both. either. you're covered π β¨
fr fr, remember that safety line β that's the whole reason this macro exists, bestie.
π SEE ALSO π
okay this list is long but we do NOT skip it, every single one is here π
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_driver_set_lock(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_safe(9), __drm_gpusvm_notifier_next(9), drm_gpusvm_for_each_notifier(9), drm_gpusvm_for_each_notifier_safe(9)
and that's the page, bestie π it lives over in ./include/drm and it's dated October 2026 β mwah, iconic, 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