svm_range_debug_dump(9)
π svm_range_debug_dump(9) β the kernel API manual, but make it cute
okay so bestie, we're in the kernel API manual (svm_range_debug_dump(9)), and this is literally the function that dumps all your range info out of an svm. keep up, it's not that deep π«Ά
β¨ NAME β¨
svm_range_debug_dump β prints, like, all the range information from svms. every last crumb. no cap.
πΈ SYNOPSIS πΈ
void svm_range_debug_dump (struct svm_range_list *svms );
void, return-value-less, doing it for the plot. π
π¦ ARGUMENTS π¦
svmsβ the svm range list header. that's it, that's the whole argument. she's the header, the main character of this call. π
π DESCRIPTION π
so what does she actually do? she debug-outputs the svm range start, end, and prefetch location, pulling them from the svms interval tree and the link list. yeah, both. the interval tree and the link list. two sources, one dump, iconic behaviour honestly. β¨
π CONTEXT π
the caller must hold svms->lock. like, this is not optional, bestie. lock it or don't come crying to me. π
π SEE ALSO π
the kernel file ./drivers/gpu/drm/amd/amdkfd/kfd_svm.c (go read it, iykyk) plus this whole friend group:
svm_range_unlink(9)svm_range_add_to_svms(9)svm_range_split_adjust(9)svm_range_split(9)svm_range_list_lock_and_flush_work(9)svm_range_evict(9)svm_range_add(9)svm_range_cpu_invalidate_pagetables(9)svm_range_from_addr(9)svm_range_check_vm(9)svm_range_is_valid(9)svm_range_best_prefetch_location(9)
and that's the whole page, diva. π sign-off time: this lil masterpiece comes from ./drivers/gpu/drm/amd/amdkfd, dated October 2026 β put it in your calendar, it's giving anniversary energy. ππ₯β
π¦ 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