ttm_move_memcpy(9)
π 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β astruct ttm_kmap_iterthat represents the destination resource π―src_iterβ astruct ttm_kmap_iterthat 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:
- Kernel file
./drivers/gpu/drm/ttm/ttm_bo_util.c ttm_bo_move_memcpy(9)ttm_buffer_object_transfer(9)ttm_io_prot(9)ttm_bo_kmap_try_from_panic(9)ttm_bo_kmap(9)ttm_bo_kunmap(9)ttm_bo_vmap(9)ttm_bo_vunmap(9)ttm_bo_move_accel_cleanup(9)ttm_bo_move_sync_cleanup(9)ttm_bo_pipeline_gutting(9)ttm_lru_walk_for_evict(9)ttm_bo_lru_cursor_fini(9)ttm_bo_lru_cursor_init(9)ttm_bo_lru_cursor_next(9)ttm_bo_lru_cursor_first(9)ttm_bo_shrink(9)ttm_bo_shrink_suitable(9)ttm_bo_shrink_avoid_wait(9)
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
- 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