ttm_move_memcpy(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ttm_move_memcpy(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual β€” yes, the actual kernel manual, and yes we're reading it for fun (iykyk). today's main character is ttm_move_memcpy, and she's literally just here to help do a memcpy ttm move operation. that's it, that's the vibe. πŸŽ€


✨ NAME ✨

ttm_move_memcpy β€” the helper bestie that performs a memcpy ttm move operation. no cap, that's her whole job. πŸ’–


🌸 SYNOPSIS 🌸

void ttm_move_memcpy (bool clear , u32 num_pages , struct ttm_kmap_iter
*dst_iter , struct ttm_kmap_iter *src_iter );

look at that signature, she's serving function-prototype realness ✨


πŸ¦‹ ARGUMENTS πŸ¦‹

  • clear β€” tells us whether to clear instead of copy. like, do you want a fresh slate or a whole duplicate? your call, bestie πŸ’…
  • num_pages β€” the number of pages involved in the operation. count 'em, don't skip 'em πŸ”₯
  • dst_iter β€” a struct ttm_kmap_iter that represents the destination resource 🎯
  • src_iter β€” a struct ttm_kmap_iter that represents the source resource πŸ“€

πŸ‘‘ DESCRIPTION πŸ‘‘

so real talk β€” this function is intended to be able to move out async under a dma-fence if desired. that's the whole design intent, and honestly? iconic. she's built for async movement and she's not shy about it. πŸ¦‹βœ¨


🌈 SEE ALSO 🌈

you already know we're linking the whole friend group 😭 β€” and the kernel file they all live in:


that's the whole page bestie, you ate it up fr fr 🫢

and a lil sign-off for the girls: this one lives in ./drivers/gpu/drm/ttm, dated October 2026, and answers to ttm_move_memcpy(9) β€” periodt. πŸ’œπŸŽ€πŸ’…

πŸ“¦ where this page comes from