ttm_kmap_iter_tt_init(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ttm_kmap_iter_tt_init(9) β€” the kernel API manual, bestie edition πŸŽ€

okay so this is the page for ttm_kmap_iter_tt_init, straight out of the Kernel API Manual (section 9, iykyk). it's a short one and honestly she's iconic for it ✨


🌸 NAME 🌸

ttm_kmap_iter_tt_init β€” literally just initialize a struct ttm_kmap_iter_tt 🫢 that's the whole job. that's the assignment.


✨ SYNOPSIS ✨

struct ttm_kmap_iter * ttm_kmap_iter_tt_init (struct ttm_kmap_iter_tt
*iter_tt , struct ttm_tt *tt );

no cap, that's the exact signature β€” copy it character for character or she will not compile πŸ’€


πŸ¦‹ ARGUMENTS πŸ¦‹

  • iter_tt β€” the struct ttm_kmap_iter_tt you're initializing bestie πŸ’– this is the one getting the glow-up.
  • tt β€” a struct ttm_tt that's holding the page pointers of the struct ttm_resource. she's carrying the pages, she's main character energy πŸ‘‘

⭐ RETURN ⭐

you get back a pointer to the embedded struct ttm_kmap_iter πŸŽ€ so like... it's embedded, and you get the pointer to it. periodt.


🌈 SEE ALSO 🌈

go look at the kernel file ./drivers/gpu/drm/ttm/ttm_tt.c and also these three besties, they're all in the group chat together:


🫢 friendly reminder: all the flags, args and function names above are verbatim β€” do not "fix" them, do not rename them, the kernel does not accept vibes-based refactors 😭

and that's the page!! πŸ’œ this one lives down in ./drivers/gpu/drm/ttm, dated October 2026, under the very cute name ttm_kmap_iter_tt_init(9) β€” mwah, go forth and initialize your iterators πŸŒΈπŸ’…πŸ“

πŸ“¦ where this page comes from