STRUCT TTM_LRU_ITEM(9)
π 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 π:
TTM_NUM_MOVE_FENCES(9)enum ttm_lru_item_type(9)ttm_lru_item_init(9)struct ttm_resource_manager(9)struct ttm_bus_placement(9)struct ttm_resource(9)ttm_lru_item_to_res(9)struct ttm_lru_bulk_move_pos(9)struct ttm_lru_bulk_move(9)struct ttm_resource_cursor(9)struct ttm_kmap_iter_iomap(9)struct ttm_kmap_iter_linear_io(9)ttm_resource_manager_set_used(9)ttm_resource_manager_used(9)ttm_resource_manager_cleanup(9)ttm_resource_manager_for_each_res(9)
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
- 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