drm_gpuvm_range_valid(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ drm_gpuvm_range_valid ✨

okay so this is a page straight out of the Kernel API Manual bestie, and it's literally just one tiny function doing a vibe check on your address range πŸ’…


πŸŽ€ NAME πŸŽ€

drm_gpuvm_range_valid β€” checks whether the given range is valid for the given &drm_gpuvm ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

bool drm_gpuvm_range_valid (struct drm_gpuvm *gpuvm , u64 addr , u64 range );

like yes that's the whole signature, she's compact and iconic 🫢


🌸 ARGUMENTS 🌸

  • gpuvm β€” the GPUVM to check the range for, i.e. the main character here πŸ‘‘
  • addr β€” the base address, the starting point of the whole situation
  • range β€” the range starting from the base address, so like how far we're going from addr

πŸ’– DESCRIPTION πŸ’–

Checks whether the range is within the GPUVM's managed boundaries. that's it, that's the whole job 😭 she's just making sure you're not coloring outside the lines, no cap.


⭐ RETURN ⭐

true for a valid range, false otherwise. literally binary queen behavior πŸ™ˆ


πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/gpu/drm/drm_gpuvm.c β€” and then the whole extended friend group, fr fr:


ngl that's a lot of friends but every single one of them ate, go read them, iykyk πŸ’œ

sign-off time bestie 🧚 this lil page lives over in ./drivers/gpu/drm, dated October 2026, and it's part of the Kernel API Manual fam. mwah, go check your ranges, slay πŸ’…βœ¨πŸ“

πŸ“¦ where this page comes from