ttm_resource_manager_next(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ttm_resource_manager_next β€” bestie's guide to keepin' the iterator goin'

okay so real talk, this one's from the Kernel API Manual (section 9, kernel devs only, iykyk) and it's literally the "and then what?" of resource manager iteration. You already called ttm_resource_manager_first(9) to get the first one, and now you want the next one? Say less. That's this function's whole personality. πŸŽ€


🌸 SYNOPSIS 🌸

struct ttm_resource * ttm_resource_manager_next (struct
       ttm_resource_cursor *cursor );

yeah it's one function, one arg, and it hands you back a struct ttm_resource *. no cap, that's the whole vibe. ✨


πŸ¦‹ ARGUMENTS πŸ¦‹

  • cursor β€” the cursor that records the position πŸ‘€ like, this is the little bookmark that remembers where you're at in the walk. You hand it over, it moves you along.

πŸ”₯ RETURN πŸ”₯

It gives you the next resource from the resource manager. That's it, that's the tea. πŸ’–


πŸ‘‘ SEE ALSO πŸ‘‘

okay so the source lives at Kernel file ./drivers/gpu/drm/ttm/ttm_resource.c β€” go read it, it's giving main character energy. And here's the whole friend group, all of them, no gatekeeping:


🫢 friendly reminder bestie: start with ttm_resource_manager_first(9) and keep hittin' this one until it stops giving you resources β€” that's the loop, periodt.

πŸ’… that's the page! source is ./drivers/gpu/drm/ttm, dated October 2026, straight outta the ttm_resource_manager_next(9) manual page β€” mwah, go slay some iteration βœ¨πŸŽ€

πŸ“¦ where this page comes from