ttm_kmap_ite...near_io_fini(9)
π ttm_kmap_iter_linear_io_fini(9) π
okay so this is a page from the Kernel API Manual, bestie β we're in kernel-land now, put your seatbelt on π
β¨ NAME β¨
ttm_kmap_iter_linear_io_fini β literally just cleans up an iterator for linear io memory π§Ήβ¨ that's it, that's the whole job
πΈ SYNOPSIS πΈ
void ttm_kmap_iter_linear_io_fini (struct ttm_kmap_iter_linear_io
*iter_io , struct ttm_device *bdev , struct ttm_resource *mem );
like, it returns void, so nothing comes back β it just does the thing and dips π«Ά
π¦ ARGUMENTS π¦
iter_ioβ the iterator you're finalizing, bestie. this is the main character of the operation πbdevβ the TTM device. yes, that one πmemβ the ttm resource representing the iomap. icon behavior fr fr
π DESCRIPTION π
okay so real talk β this function is for internal TTM use only. not for you, not for me, only for TTM's private little circle π
what it does: it cleans up a memcpy kmap iterator that was initialized by ttm_kmap_iter_linear_io_init. so like, ttm_kmap_iter_linear_io_init sets it up, and this one β ttm_kmap_iter_linear_io_fini β tears it down. the way that they're a matched set ππ
π SEE ALSO π
kernel file: ./drivers/gpu/drm/ttm/ttm_resource.c β go read it, iykyk π
and the whole friend group of related functions, no cap:
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_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_resource_manager_create_debugfs(9)ttm_resource_manager_dmem_reclaim(9)ttm_resource_manager_set_dmem_region(9)
it's giving "linked list of documentation" tbh π¦
β οΈ reminder bestie: internal TTM use only. don't go calling this from your own code, i'm begging π
okay that's the whole page, mwah π β this gem lives in ./drivers/gpu/drm/ttm and it's dated October 2026, so mark your calendars π
β¨ slay, go clean up those iterators responsibly π
π¦ 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