__drm_gpusvm_range_next(9)
π
__drm_gpusvm_range_next(9) β kernel API manual, bestie edition β¨
okay so welcome to the Kernel API Manual page for __drm_gpusvm_range_next β yes it's got the double underscore, yes it's a little intimidating, no you're gonna be fine, i promise π«Ά
πΈ NAME πΈ
__drm_gpusvm_range_next β literally just "get the next GPU SVM range in the list", that's it, that's the whole job π«
β¨ SYNOPSIS β¨
struct drm_gpusvm_range * __drm_gpusvm_range_next (struct
drm_gpusvm_range *range );
likeβ¦ look at her. one argument. one return. main character energy honestly π
π ARGUMENTS π
rangeβ a pointer to the current GPU SVM range. that's your "i am here" dot on the map, bestie π
π¦ RETURN π¦
so what do you get back?
- A pointer to the next
drm_gpusvm_rangeif available β¨ slay, there's more list to walk - Or
NULLin two very specific situations, and i need you to clock both of them:- if the current range is the last one β you've hit the end of the list, no more range for you π
- or if the input
rangeisNULLβ you handed it nothing, it hands you nothing back, fair's fair π
no cap, thatNULL-in-NULL-out case is not a bug, it's a documented mood. respect it π
π SEE ALSO π
the whole friend group, gathered for your convenience π§ β and yes, it's a long group chat, we're not skipping anyone:
- 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_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)
okay that's the whole page, you ate that π
and before you go β this lil masterpiece lives in ./include/drm, the version is October 2026, and it says __drm_gpusvm_range_next(9) at the bottom too because the header and footer are both obsessed with her. 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