LINEAR IO ITERATOR(9)
π
Linear io iterator(9) π
okay bestie, welcome to the Kernel API Manual page for the linear io iterator. it's giving "legacy code we're politely waiting to retire" π no cap.
π¦ Linear io iterator π¦
real talk: this code should die in the not too near future π. best-case scenario? we could make io-mapping use memremap for all io memory, and have memremap implement a kmap_local functionality. then we could strip a huge amount of code. like, iconic cleanup energy β¨.
these linear io iterators are implemented to mimic old functionality, and they don't use kmap_local semantics at all internally π. instead they use ioremap or friends, and at least on 32-bit they add global TLB flushes and points of failure. so yeah, that's the tea β.
heads up bestie: this is legacy mimicry, not kmap_local semantics β and on 32-bit it adds global TLB flushes and points of failure π
π SEE ALSO π
Kernel file: ./drivers/gpu/drm/ttm/ttm_resource.c
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)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)
mwah π this page came from ./drivers/gpu/drm/ttm, dated October 2026, and it's literally the Linear io iterator(9) moment β bye bestie, go touch some kmap_local-adjacent grass π±π«Ά
π¦ 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