drm_gpuvm_interval_empty(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_gpuvm_interval_empty β€” the kernel API manual, bestie edition

okay so real talk, this one's a little function from the kernel API manual that answers exactly one (1) question: is this chunk of the VA space, like… empty? That's it. That's the whole gig. And honestly? Iconic.


✨ NAME ✨

drm_gpuvm_interval_empty β€” tells you whether a given interval of the VA space is empty 🫧


🌸 SYNOPSIS 🌸

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

πŸŽ€ ARGUMENTS πŸŽ€

  • gpuvm β€” the drm_gpuvm you're checking the range for, like, this is the whole vibe we're inspecting πŸ’–
  • addr β€” the start address of the range, aka where the bit you care about begins
  • range β€” the range of the interval, so like how far it goes from there 🌈

⭐ RETURN ⭐

true if the interval is empty, and false otherwise. no cap, that's the whole answer 🫢


πŸ¦‹ SEE ALSO πŸ¦‹

the kernel file ./drivers/gpu/drm/drm_gpuvm.c is the main character here, and it's got so many friends:

like, go read them, they're all right there πŸ”₯


so yeah, that's the whole page πŸ’œ this little cutie lives over in ./drivers/gpu/drm, dated October 2026, and it ate, no notes. mwah πŸŽ€βœ¨

πŸ“¦ where this page comes from