ttm_resourc...for_each_res(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ NAME πŸ¦‹

okay so bestie, this is the <pink>ttm_resource_manager_for_each_res</pink> page from the Kernel API Manual β€” yes, the kernel actually has a manual, and yes, it's kinda iconic. what it does: iterate over all resources. that's the whole vibe. ✨


πŸ’… SYNOPSIS πŸ’…

ttm_resource_manager_for_each_res (cursor , res );

like, that's it. that's the call. no cap. πŸŽ€


🌸 ARGUMENTS 🌸

  • cursor β€” a struct ttm_resource_cursor that holds the current position of the loop, like a little bookmark for where you're at rn. πŸ”–
  • res β€” the current resource. literally the one you're looking at in this iteration. πŸ’–

🫢 DESCRIPTION 🫢

so the way that this works is you get to iterate over all the evictable resources in a resource manager. all of them. every single one. it's giving "for each" energy and honestly? obsessed. 🧚

lowkey important: the resources you're walking over are the evictable ones living in a resource manager β€” that's the scope, bestie, don't forget it. πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

the kernel file this lives in is ./include/drm/ttm/ttm_resource.h β€” go look, it's right there. πŸ“

and the whole friend group (the related pages, fr fr):


okay that's the page!! πŸ’œ this one came out of ./include/drm/ttm, dated October 2026, and it's filed under ttm_resourc...for_each_res(9) β€” go forth and iterate, bestie, you got this 🫢🌈⭐

πŸ“¦ where this page comes from