svm_range_from_addr(9)
β¨ svm_range_from_addr(9) β¨
okay so bestie, we're in the Kernel API Manual today and this one's a 9 β yes, a section 9 page, we love a kernel-internals moment π this is svm_range_from_addr, and honestly? it's giving "where's my range" energy.
πΈ NAME πΈ
svm_range_from_addr β find svm range from fault address. literally its whole job π
π¦ SYNOPSIS π¦
struct svm_range * svm_range_from_addr (struct svm_range_list *svms ,
unsigned long addr , struct svm_range **parent );
π ARGUMENTS π
svmsβ the svm range list header, bestie. it's your starting point π«Άaddrβ the address you're searching for in the range interval tree. and no, not in bytes β it's in pages fr fr πparentβ gets you the parent range, but only if the range is on the child list π (iykyk)
π₯ CONTEXT π₯
no cap, the caller must hold svms->lock before calling this. not optional, not a vibe, it's the rule π
β RETURN β
returns the svm_range that was found β or NULL if there's nothing there π
π SEE ALSO π
the kernel file lives at ./drivers/gpu/drm/amd/amdkfd/kfd_svm.c, and while you're there, go say hi to the whole friend group π
svm_range_unlink(9)svm_range_add_to_svms(9)svm_range_debug_dump(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_check_vm(9)svm_range_is_valid(9)svm_range_best_prefetch_location(9)
and that's the whole page, bestie, slay π β¨
cute lil sign-off: this one came out of the ./drivers/gpu/drm/amd/amdkfd directory, dated October 2026, and the page is svm_range_from_addr(9) β 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