STRUCT TTM_LRU_ITEM(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct ttm_lru_item(9)

okay so bestie, welcome to the Kernel API Manual entry for struct ttm_lru_item(9) β€” it's giving "tiny struct, big responsibilities" and honestly I'm obsessed. Let's get into it πŸŽ€


✨ NAME ✨

struct ttm_lru_item β€” literally the TTM lru list node base class. that's it. that's the whole vibe. she's a base class, she's an lru list node, she's iconic πŸ’…


🌸 SYNOPSIS 🌸

struct ttm_lru_item {
    struct list_head link;
    enum ttm_lru_item_type type;
 };

look at her. two members. no notes. 🫢


πŸ¦‹ Members πŸ¦‹

  • link β€” the list link. yeah. that's the actual description and honestly? slay, keep it simple ✨
  • type β€” the subclass type. it tells you which subclass she's repping, no cap πŸ‘‘

πŸ‘‘ SEE ALSO πŸ‘‘

okay so the required reading list is LONG but we're gonna get through it together, fr fr. all of these live in the kernel file ./include/drm/ttm/ttm_resource.h πŸ“:

like… that's a whole friend group and struct ttm_lru_item is the main character holding them together, iykyk πŸ’–


bestie reminder: every single one of those references is real and you should go read them. don't skip the reading. that's not the vibe. 😭

./include/drm/ttm Β· October 2026 Β· struct ttm_lru_item(9) β€” and that's the whole page, mwah πŸ’‹βœ¨ go forth and lru-list responsibly, ily 🫢🌈

πŸ“¦ where this page comes from