ttm_bo_set_bulk_move(9)
β¨ ttm_bo_set_bulk_move β¨
okay so this page is from the Kernel API Manual bestie β it's ttm_bo_set_bulk_move(9) and it's literally the glow-up your buffer object's bulk move needs π
πΈ NAME πΈ
ttm_bo_set_bulk_move β update BOs bulk move object π
π¦ SYNOPSIS π¦
void ttm_bo_set_bulk_move (struct ttm_buffer_object *bo,
struct ttm_lru_bulk_move *bulk);
like. that's it. that's the whole vibe. void return, two args, no drama π
π ARGUMENTS π
boβ the buffer object π bestie in questionbulkβ the bulk move structure β¨ the squeaky-clean little container that says "these resources travel together"
π DESCRIPTION π
so what this does is it updates the BO's bulk move object, and β key detail β it makes sure that resources get added/removed as well, so nothing gets left behind at the party π«Ά
a bulk move lets you move many resources on the LRU at once, which means much less overhead from maintaining the LRU. it's giving efficiency. it's giving slay. it's giving "why move one when you could move them all" π
the one requirement, and this is non-negotiable: the resources have to stay together on the LRU and are never separated. no cap. that's the whole deal.
this is enforced by setting the bulk_move structure on a BO π₯ so like, the struct is your friendship bracelet β everyone wears one, everyone stays in the group chat.
and then ttm_lru_bulk_move_tail should be used to move all the resources to the tail of their LRU list π§ that's the move. that's the whole move.
π SEE ALSO π
kernel file ./drivers/gpu/drm/ttm/ttm_bo.c β and the whole extended universe, fr fr:
ttm_bo_move_to_lru_tail(9)ttm_bo_eviction_valuable(9)ttm_bo_evict_first(9)ttm_bo_alloc_at_place(9)struct ttm_bo_evict_walk(9)ttm_bo_evict_cgroup(9)ttm_bo_pin(9)ttm_bo_unpin(9)ttm_bo_alloc_resource(9)ttm_bo_validate(9)ttm_bo_init_reserved(9)ttm_bo_init_validate(9)ttm_bo_unmap_virtual(9)ttm_bo_wait_ctx(9)struct ttm_bo_swapout_walk(9)ttm_bo_swapout(9)ttm_bo_populate(9)
anyway bestie, that's the page π quick sign-off so you know where this came from: it lives at ./drivers/gpu/drm/ttm, the date on it is October 2026, and the page is ttm_bo_set_bulk_move(9). go forth and bulk move responsibly, ily πππ¦
π¦ 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