STRUCT TTM_KMAP_ITER(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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