drm_gpuvm_for_each_va_safe(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

๐Ÿ’… drm_gpuvm_for_each_va_safe(9) โ€” Kernel API Manual โœจ

okay bestie, welcome to the Kernel API Manual corner of the group chat ๐Ÿซถ this one is a whole iterator vibe and honestly itโ€™s giving โ€œresponsible friend who checks the exits before the partyโ€ ๐Ÿ”ฅ


๐ŸŒธ NAME ๐ŸŒธ

drm_gpuvm_for_each_va_safe โ€” safely iterate over all &drm_gpuvas ๐Ÿ’–


โœจ SYNOPSIS โœจ

drm_gpuvm_for_each_va_safe (va__ , next__ , gpuvm__ );

๐ŸŽ€ ARGUMENTS ๐ŸŽ€

  • va__ โ€” the drm_gpuva you assign to in each iteration step ๐Ÿ‘‘
  • next__ โ€” another drm_gpuva, just hanging out as temporary storage ๐Ÿ“
  • gpuvm__ โ€” the drm_gpuvm youโ€™re walking over ๐Ÿฆ‹

๐Ÿ’ซ DESCRIPTION ๐Ÿ’ซ

okay so this iterator walks over all the drm_gpuva structures associated with the given drm_gpuvm. literally all of them, no cap ๐Ÿ’…

itโ€™s implemented with list_for_each_entry_safe, and hence safe against the removal of elements ๐Ÿ˜ญ๐Ÿ”ฅ so yes bestie, you can remove stuff while youโ€™re iterating and itโ€™s not gonna have a main character meltdown. iconic behavior fr fr โœจ


๐Ÿ”ฎ SEE ALSO ๐Ÿ”ฎ

Kernel file ./include/drm/drm_gpuvm.h โ€” and the whole extended universe is here, bestie, weโ€™re not skipping a single one ๐Ÿซถ


and thatโ€™s the page, bestie ๐ŸŽ€ signed off from ./include/drm, dated October 2026, and yes the title is still drm_gpuvm_for_each_va_safe(9) because we keep the branding immaculate ๐Ÿ’…โœจ

๐Ÿ“ฆ where this page comes from