ttm_bo_eviction_valuable(9)
π ttm_bo_eviction_valuable(9) π
okay so bestie, welcome to the Kernel API Manual β¨ β yes the fancy official one β and today's main character is ttm_bo_eviction_valuable(9). she's a little function with a big question: is it even worth it? π«Ά
β¨ NAME β¨
ttm_bo_eviction_valuable β
and that's it. that's the whole name line. the description after the dash is literally empty, no cap π the kernel devs said "she needs no introduction" and moved on. iconic behavior honestly π
π¦ SYNOPSIS π¦
bool ttm_bo_eviction_valuable (struct ttm_buffer_object *bo , const
struct ttm_place *place );
like, she returns a bool, she takes two pointers, she minds her own business. we stan a low-maintenance queen π
π ARGUMENTS π
boβ the buffer object to evict. this is the one on the chopping block, the one we're side-eyeing and asking "girl, are you worth keeping?" πplaceβ the placement we need to make room for. this is the new arrival, the reason we're even having this conversation. she needs space and she needs it now πββοΈπ¨
πΈ DESCRIPTION πΈ
so here's the vibe: this function checks if it is valuable to evict the BO to make room for the given placement. that's the whole assignment. it's a vibe check π
for buffers β is kicking this bo out actually worth it so place can slide in? yes or no, bestie, no essays needed.
lowkey the most honest function in the kernel fr fr π§
ngl, the original page gives us exactly one sentence of description and honestly? we respect the brevity. no filler, just vibes β¨
π SEE ALSO π
okay this is where she goes full social butterfly π¦ β the kernel file is ./drivers/gpu/drm/ttm/ttm_bo.c and here's the whole friend group:
ttm_bo_move_to_lru_tail(9)ttm_bo_set_bulk_move(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)
that's seventeen besties and every single one of them gets a mention. no one gets left on read in this manpage π
and that's the page, babe π she lives in ./drivers/gpu/drm/ttm, her timestamp is October 2026, and she said what she said. go evict something (valuably). π
β¨π₯
π¦ 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