STRUCT TTM_BO_EVICT_WALK(9)
π struct ttm_bo_evict_walk(9)
okay so bestie, welcome to the Kernel API Manual β¨ this one's all about struct ttm_bo_evict_walk β literally the parameters for the evict walk. no cap, that's the whole vibe.
πΈ NAME πΈ
struct ttm_bo_evict_walk β Parameters for the evict walk. that's it, that's the tweet π«Ά
β¨ SYNOPSIS β¨
struct ttm_bo_evict_walk {
struct ttm_lru_walk walk;
const struct ttm_place *place;
struct ttm_buffer_object *evictor;
struct ttm_resource **res;
unsigned long evicted;
bool try_low;
bool hit_low;
struct ttm_bo_alloc_state *alloc_state;
};
look at her. iconic struct. π
π¦ Members π¦
here's the cast of characters, and honestly? every single one of them eats π
walkβ the walk base parameters. the foundation, the main character energy, the whole starting point fr.placeβ the place that gets passed to the resource allocation. where we're tryna be, lowkey.evictorβ the buffer object we're literally trying to make room for. king behaviour honestly, everything else is getting moved for you πresβ the allocated resource, if any. and yes bestie, "if any" is doing a lot of work in that sentence πevictedβ the number of successful evictions. a little counter, a little trophy case, we love to see it.try_lowβ whether we should attempt to evict BO's with low watermark threshold. like, should we go for the low ones? that's the question π«Άhit_lowβ if we cannot evict a bo whentry_lowis false (first pass). so like, the first-pass drama, noted πalloc_stateβ state associated with the allocation attempt. keeping receipts on the whole allocation moment, periodt.
π₯ SEE ALSO π₯
Kernel file ./drivers/gpu/drm/ttm/ttm_bo.c
and the whole friend group, no cap:
ttm_bo_move_to_lru_tail(9)ttm_bo_set_bulk_move(9)ttm_bo_eviction_valuable(9)ttm_bo_evict_first(9)ttm_bo_alloc_at_place(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)
bestie reminder: this page lives at ./drivers/gpu/drm/ttm, and it's dated October 2026 β so yeah, slightly future, she's ahead of her time β
okay that's the whole manpage, mwah, go forth and evict responsibly π§π
π¦ 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