STRUCT TTM_KMAP_ITER(9)
π struct ttm_kmap_iter(9) π
okay bestie, welcome to the Kernel API Manual β¨ this one is short but it's giving "small but mighty," and honestly? iconic.
β¨ NAME β¨
struct ttm_kmap_iter β an iterator for kmap_local-type operations on a resource. lowkey a little struct with main character energy π
π¦ SYNOPSIS π¦
struct ttm_kmap_iter {
const struct ttm_kmap_iter_ops *ops;
};
π Members π
opsβ pointer to the operations struct. that's the member, bestie, the whole struct is literally this one pointer and we stan a minimalist π
πΈ Description πΈ
This struct is intended to be embedded in a resource-specific specialization that implements operations for the resource. so like, it's not out here doing solo performances β it gets tucked inside a bigger, resource-specific situation and does its thing from there π«Ά
Nothing stops us from extending the operations to vmap, vmap_pfn etc, replacing some or parts of the ttm_bo_util. cpu-map functionality. no cap, that's literally what the docs say β the door is open for expansion, iykyk πͺβ¨
π SEE ALSO π
- Kernel file
./include/drm/ttm/ttm_kmap_iter.h - struct
ttm_kmap_iter_ops(9)
that's the whole page, bestie β short, sweet, and absolutely slaying in that low-level kernel way π β¨
Kernel API Manual Β· October 2026 Β· from ./include/drm/ttm β mwah, go read the header ππ
π¦ 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