svm_range_from_addr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 πŸŽ€


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