STRUCT TTM_BO_EVICT_WALK(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 when try_low is 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:


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