ttm_bo_move_accel_cleanup(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ttm_bo_move_accel_cleanup β€” like, the manual page bestie

Okay so this is a Kernel API Manual page for ttm_bo_move_accel_cleanup(9) β€” the cleanup helper for hw copies, iykyk. Buckle up, it's giving DRM internals and honestly it ate. πŸŽ€


✨ NAME ✨

ttm_bo_move_accel_cleanup β€” the cleanup helper for hw copies, bestie. Literally that's her whole job. πŸ’–


🌸 SYNOPSIS 🌸

int ttm_bo_move_accel_cleanup (struct ttm_buffer_object *bo , struct
       dma_fence *fence , bool evict , bool pipeline , struct ttm_resource
       *new_mem );

Yeah she returns an int. Petite function signature, main character energy. ✨


πŸ¦‹ ARGUMENTS πŸ¦‹

  • bo β€” a pointer to a struct ttm_buffer_object. That's the buffer bestie in question. 🫢
  • fence β€” a fence object that signals when moving is complete. She's the one who texts you "we're done here" ngl. 🌈
  • evict β€” this is an evict move. Like, don't return until the buffer is idle. No cap, you gotta wait. πŸ’€
  • pipeline β€” evictions are to be pipelined. Very "we do things in parallel around here" of her. ⭐
  • new_mem β€” a struct ttm_resource indicating where to move. The destination, the new vibe, the relocation address. πŸ¦‹

πŸ”₯ DESCRIPTION πŸ”₯

So this is the accelerated move function, and you call it when an accelerated move has been scheduled. Not before, not vibes-only β€” when it's been scheduled. πŸ“‹

What she does: the function creates a new temporary buffer object representing the old placement πŸŽ€, and then puts the sync object on both buffer objects. Both of them. Equal treatment, we love to see it. πŸ’…

After that, the newly created buffer object is unref'd β€” so it gets destroyed when the move is complete. It's giving "I'll clean myself up, don't worry about me." 😭 And this, right here, is what helps pipeline buffer moves. Iconic. πŸ‘‘


πŸ‘‘ SEE ALSO πŸ‘‘

Go read these, bestie, they're all in the kernel file ./drivers/gpu/drm/ttm/ttm_bo_util.c:


πŸ’œ Whole little family of ttm_bo_* friends in there β€” go say hi, they're all linked from ./drivers/gpu/drm/ttm.

That's the whole page, bestie! Source and version vibes: the ./drivers/gpu/drm/ttm section, dated October 2026, page ttm_bo_move_accel_cleanup(9). Slay, go move some buffers. πŸ’–βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from