ttm_bo_move_sync_cleanup(9)
π ttm_bo_move_sync_cleanup(9) β¨
okay so bestie, welcome to the Kernel API Manual π«Ά β this one's from the DRM/TTM corner of the kernel and it's literally just "wait for the move to be done, then clean up." iconic, low-effort, effective. no cap.
β¨ NAME β¨
ttm_bo_move_sync_cleanup β cleanup by waiting for the move to finish πΈ
π SYNOPSIS π
void ttm_bo_move_sync_cleanup (struct ttm_buffer_object *bo , struct
ttm_resource *new_mem );
that's the whole thing. void return, two args, no drama π
π¦ ARGUMENTS π¦
boβ a pointer to astruct ttm_buffer_object. yes, the buffer object itself, the main character πnew_memβ astruct ttm_resourceindicating where to move. it's giving "destination address" energy β¨
π DESCRIPTION π
okay so this is a special case of ttm_bo_move_accel_cleanup, and the special part is that the caller guarantees the bo is idle. like, guaranteed-guaranteed. the caller pinky-swears it π€
typically it gets used after memcpy buffer moves β that's literally the vibe. so you memcpy'd your buffer, everyone's chill, and now you sync up and clean up.
β οΈ note the caveat: the bo being idle is on you, the caller. this function isn't doing the vibe check for you, it's trusting you already did it π
π₯ SEE ALSO π₯
kernel file ./drivers/gpu/drm/ttm/ttm_bo_util.c and the whole friend group:
ttm_move_memcpy(9)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_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)
the whole squad, fr fr π§
π sign-off π
that's the page, bestie! it lives at ./drivers/gpu/drm/ttm, it's dated October 2026, and it goes by ttm_bo_move_sync_cleanup(9) π go wait on that move and be free β¨ππ
π¦ 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