STRUCT TTM_POOL(9)
πΈ struct ttm_pool(9) β the pool for all caching and orders πΈ
Okay so bestie, welcome to the tea on struct ttm_pool π
this is literally the pool that handles all your caching and orders β main character energy fr fr. It's a kernel struct, so you know it's giving serious business, but don't worry, we're gonna walk through it together π«Ά
β¨ SYNOPSIS β¨
struct ttm_pool {
struct device *dev;
int nid;
unsigned int alloc_flags;
struct {
struct ttm_pool_type orders[NR_PAGE_ORDERS];
} caching[TTM_NUM_CACHING_TYPES];
};
π Members π
devβ the device we're allocating pages for β like, the whole reason we're here, the main character device, periodt πnidβ tells you which numa node to use β pick your fave node, bestie, no cap π¦alloc_flagsβ theTTM_ALLOCATION_POOL_*flags β these are the vibe flags that control how allocation goes down, iykyk π₯cachingβ the actual pools for each caching type and order β this is where the magic happens, it's literally an array ofstruct ttm_pool_type orders[NR_PAGE_ORDERS]indexed byTTM_NUM_CACHING_TYPES, and the way that's structured? obsessed ππ
π SEE ALSO π
- Kernel file
./include/drm/ttm/ttm_pool.h struct ttm_pool_type(9)β go read that one too, bestie, it's iconic β¨
ngl this struct is lowkey doing a lot of heavy lifting behind the scenes β respect the grind ππ
source: ./include/drm/ttm β dated October 2026 β that's the whole manual page bestie, slay ππβ¨
π¦ 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