ttm_bo_shrink_avoid_wait(9)
π ttm_bo_shrink_avoid_wait(9) π
okay so bestie, welcome to the Kernel API Manual β this one's a tiny little function from the TTM (translation table manager) world, and it's literally just a yes-or-no vibe check π
β¨ NAME β¨
ttm_bo_shrink_avoid_wait β the "should we not wait for the GPU while we're shrinking stuff" decider π«Ά
πΈ SYNOPSIS πΈ
bool ttm_bo_shrink_avoid_wait (void );
π¦ ARGUMENTS π¦
voidβ no arguments, babe. none. zero. it takes nothing, it needs nothing, main character energy π
π DESCRIPTION π
so like, sometimes β think direct reclaim β you genuinely should not be waiting around. and when I say waiting I mean especially GPU waiting, because that kind of stall can freeze up a whole system that could otherwise be out here making actual progress shrinking something else that takes way less time π
it's giving "don't block the group chat waiting on one person to type" fr fr π
β RETURN β
trueβ yep, GPU waiting should be avoided πfalseβ nope, you're fine to wait π
π₯ SEE ALSO π₯
Kernel file ./drivers/gpu/drm/ttm/ttm_bo_util.c β and honestly, the whole squad:
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_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)
and that's the whole page, no cap π this icon lives in ./drivers/gpu/drm/ttm and the docs are dated October 2026 β go off, kernel docs, you ate πβ¨
π¦ 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