ttm_resource_cursor_init(9)
β¨ ttm_resource_cursor_init(9) β¨
okay so bestie, welcome to the Kernel API Manual entry for ttm_resource_cursor_init β yes that's a whole mouthful, i know, but stay with me because this one is actually short and sweet π«Ά
πΈ NAME πΈ
ttm_resource_cursor_init β Initialize a struct ttm_resource_cursor
like... it literally does what it says on the tin, no cap π
π¦ SYNOPSIS π¦
void ttm_resource_cursor_init (struct ttm_resource_cursor *cursor ,
struct ttm_resource_manager *man );
that's the whole signature, keep those params exactly as-is, character for character, do not touch β¨
π ARGUMENTS π
cursorβ The cursor to initialize. yes queen, this is the one you're bringing to life πmanβ The resource manager. the whole reason this cursor even exists ngl π
π DESCRIPTION π
Initialize the cursor before using it for iteration.
that's it. that's the assignment. do it before you iterate, not during, not after, not "eh it'll probably work" β before πβ¨
π₯ SEE ALSO π₯
so many siblings, it's giving big family energy π
- Kernel file
./drivers/gpu/drm/ttm/ttm_resource.c 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_resource_manager_next(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)
and that's the whole page bestie, you ate π β¨
this lil icon comes to you straight from ./drivers/gpu/drm/ttm β October 2026 edition, mwah ππ¦π
π¦ 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