ttm_bo_shrink_suitable(9)
๐ ttm_bo_shrink_suitable ๐
okay so bestie, this is a page straight outta the Kernel API Manual โ and it's here to answer one very specific question: is this bo suitable for shinking? (yes, โshinkingโ is the spelling on the page, not me ๐ญ). Anyway, slay, let's get into it.
โจ NAME โจ
ttm_bo_shrink_suitable โ whether a bo is suitable for shinking.
๐ฎ SYNOPSIS ๐ฎ
bool ttm_bo_shrink_suitable (struct ttm_buffer_object *bo , struct
ttm_operation_ctx *ctx );
๐งธ ARGUMENTS ๐งธ
boโ the candidate for shrinking. this is the little guy under consideration ๐ctxโ thestruct ttm_operation_ctxgoverning the shrinking.
๐ธ DESCRIPTION ๐ธ
Check whether the object, given the information available to TTM, is suitable for shinking. This function can and should be used before attempting to shrink an object. Like, do the vibe check first, bestie โ it's literally right there. No cap.
โ RETURN โ
trueif suitable.falseif not.
periodt.
๐ฆ SEE ALSO ๐ฆ
Kernel file ./drivers/gpu/drm/ttm/ttm_bo_util.c
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_avoid_wait(9)
mwah ๐ โ source/version: ./drivers/gpu/drm/ttm; date: October 2026.
๐ฆ 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