ttm_resource_manager_next(9)
π 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:
ttm_resource_cursor_init(9)ttm_resource_cursor_fini(9)ttm_lru_bulk_move_init(9)ttm_lru_bulk_move_fini(9)ttm_lru_bulk_move_tail(9)ttm_resource_init(9)ttm_resource_fini(9)ttm_resource_try_charge(9)ttm_resource_intersects(9)ttm_resource_compatible(9)ttm_resource_manager_init(9)ttm_resource_manager_usage(9)ttm_resource_manager_debug(9)ttm_resource_manager_first(9)ttm_lru_first_res_or_null(9)ttm_kmap_iter_iomap_init(9)Linear io iterator(9)ttm_kmap_iter_linear_io_init(9)ttm_kmap_iter_linear_io_fini(9)ttm_resource_manager_create_debugfs(9)ttm_resource_manager_dmem_reclaim(9)ttm_resource_manager_set_dmem_region(9)
π«Ά 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms