ttm_resource_cursor_fini(9)
π ttm_resource_cursor_fini β the Kernel API Manual, bestie edition π
okay so you're here for ttm_resource_cursor_fini(9) from the Kernel API Manual β the function that Finalizes the LRU list cursor usage. yes that's a capital-F Finalize, it's that serious. let's get into it π«Ά
β¨ NAME β¨
ttm_resource_cursor_fini β Finalize the LRU list cursor usage. that's it, that's the whole vibe. it's the clean-up girlie of the LRU list cursor world π
β¨ SYNOPSIS β¨
void ttm_resource_cursor_fini (struct ttm_resource_cursor *cursor );
look at her. void return, one argument, zero drama β well, ok, almost zero drama, keep reading π
β¨ ARGUMENTS β¨
cursorβ Thestruct ttm_resource_cursorto finalize. like, the actual cursor struct you want to send off into the sunset. hand her over πΈ
β¨ DESCRIPTION β¨
ok so real talk: this function pulls the LRU list cursor off any lists it was previously attached to. detaching. unclipping. releasing her from the group chat, if you will π
Needs to be called with the LRU lock held. not optional, not a suggestion, not a "maybe later" β the LRU lock. held. periodt π
the cute part tho? the function can be called multiple times after each other. so if you're sitting there like "wait did I already fini this one π₯΄" β you're fine, bestie, she's chill like that. idempotent queen energy, no cap π
β¨ SEE ALSO β¨
- Kernel file
./drivers/gpu/drm/ttm/ttm_resource.cβ the source, the mothership, the origin story π¦ ttm_resource_cursor_init(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)
like, literally the whole friend group. read all of them, iykyk π
and that's the page!! tysm for reading, mwah π§
<div align="center">πΈ from ./drivers/gpu/drm/ttm Β· October 2026 Β· stay locked, stay iconic β¨</div>
π¦ 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