ttm_kmap_ite...near_io_init(9)
π NAME π
ttm_kmap_iter_linear_io_init β bestie, this one initializes an iterator for linear io memory β¨
(also hi, you're reading the Kernel API Manual, welcome to the group chat π«Ά)
πΈ SYNOPSIS πΈ
struct ttm_kmap_iter * ttm_kmap_iter_linear_io_init (struct
ttm_kmap_iter_linear_io *iter_io , struct ttm_device *bdev , struct
ttm_resource *mem );
π ARGUMENTS π
iter_ioβ the iterator you're initializing. it's the main character here πbdevβ the TTM device. your devicey device, ngl π¦memβ the ttm resource that represents the iomap π
β¨ DESCRIPTION β¨
okay so real talk: this function is for internal TTM use only π like, if you're not TTM, this is not your moment, bestie.
what it does is set up a memcpy kmap iterator pointing at a linear chunk of io memory. that's it, that's the vibe. lowkey iconic, highkey specific π
π₯ RETURN π₯
you get back a pointer to the embedded struct ttm_kmap_iter β or an error pointer on failure π (so likeβ¦ vibe check your return value, fr fr)
π¦ SEE ALSO π¦
the kernel file lives at ./drivers/gpu/drm/ttm/ttm_resource.c β go say hi, it's literally right there π§
and the whole friend group:
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_fini(9)ttm_resource_manager_create_debugfs(9)ttm_resource_manager_dmem_reclaim(9)ttm_resource_manager_set_dmem_region(9)
and that's a wrap, bestie ππ
this page came from ./drivers/gpu/drm/ttm, dated October 2026, and it goes by ttm_kmap_ite...near_io_init(9) (yes the title got truncated, no it's not a typo, the manual really said that π). periodt. π
π¦ 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