ENUM TTM_LRU_ITEM_TYPE(9)
π enum ttm_lru_item_type(9) β bestie's field guide to the TTM LRU item gang
okay so this is the ttm_lru_item_type page from the Kernel API Manual, and it's honestly such a short one that you could read it in the time it takes your iced coffee to arrive π§ β but it's important, so let's get into it.
The whole vibe of this enum? It's literally just a lil name-tag system. ttm_lru_item has subclasses, and this enum is the way we tell them apart. No cap, that's the entire plot π
β¨ NAME β¨
enum ttm_lru_item_type β enumerate ttm_lru_item subclasses π¦
πΈ SYNOPSIS πΈ
enum ttm_lru_item_type {
TTM_LRU_RESOURCE ,
TTM_LRU_HITCH
};
that's it, that's the whole thing. two constants, both living rent-free in the enum. iconic behavior honestly π
π Constants π
TTM_LRU_RESOURCEβ the resource subclass π that's the one that's all about resources.TTM_LRU_HITCHβ the iterator hitch subclass π the hitch, but make it iterator.
fr fr the whole enum is just these two, so if you were bracing for a long list β nope. two items. we ate and left no crumbs.
π₯ SEE ALSO π₯
the kernel file lives at ./include/drm/ttm/ttm_resource.h β go say hi to it, it's the source of truth π
and here's the whole friend group, in the order they were introduced, because we don't skip anyone in this house π«Ά
TTM_NUM_MOVE_FENCES(9)struct ttm_lru_item(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 packed SEE ALSO section. main character energy from every single one of them ngl β
so yeah, that's the page π it shipped out from ./include/drm/ttm back in October 2026, and it's been slaying ever since. go forth, tell your subclasses apart, and remember β TTM_LRU_RESOURCE and TTM_LRU_HITCH, that's the whole roster. periodt. πβ¨π
π¦ 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