svm_range_is_valid(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

hey bestie, this is svm_range_is_valid(9) from the Kernel API Manual β€” and it does exactly what it says on the tin: check if virtual address range is valid πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

       int svm_range_is_valid (struct kfd_process *p , uint64_t start ,
       uint64_t size );

πŸŽ€ ARGUMENTS πŸŽ€

  • p β€” current kfd_process πŸ‘‘
  • start β€” range start address, in pages 🌸
  • size β€” range size, in pages πŸ¦‹

πŸ’– DESCRIPTION πŸ’–

okay so the vibe check here is simple: a valid virtual address range means it belongs to one or more VMAs ✨ that’s literally the whole thing, no cap.


🌈 CONTEXT 🌈

Process context 🫢


⭐ RETURN ⭐

0 - OK, otherwise error code πŸ’€


πŸ”₯ SEE ALSO πŸ”₯

Kernel file: ./drivers/gpu/drm/amd/amdkfd/kfd_svm.c β€” and these related besties:


mwah πŸ’‹ β€” signed off from the source/version spot ./drivers/gpu/drm/amd/amdkfd, dated October 2026 πŸŽ€βœ¨

πŸ“¦ where this page comes from