ttm_pool_init(9)
π ttm_pool_init(9) π
ok so this is a page from the Kernel API Manual, and bestie, we are learning how to birth a pool today. yes, a pool. for the TTMs. stay with me β¨
β¨ NAME β¨
ttm_pool_init β literally just "Initialize a pool" πββοΈ no cap, that's the whole pitch
π SYNOPSIS π
void ttm_pool_init (struct ttm_pool *pool , struct device *dev , int nid
, unsigned int alloc_flags );
like, four args, zero return value, very demure, very void π«Ά
πΈ ARGUMENTS πΈ
poolβ the pool you're initializing, bestie. your main character. it's the thing getting set up πdevβ the device, and it's the one used for DMA allocations and mappings πnidβ the NUMA node to use for allocations. yes, that NUMA node π¦alloc_flagsβ theTTM_ALLOCATION_POOL_*flags. the star of the show, the flags, the vibes π
β¨ DESCRIPTION β¨
okay so what does it actually do? it initializes the pool and its pool types. that's it. that's the sentence. no notes, no extra lore, slay π
honestly? iconic behavior. one job, does the job.
π₯ SEE ALSO π₯
the whole friend group, fr fr β no one gets left out:
- Kernel file
./drivers/gpu/drm/ttm/ttm_pool.c struct ttm_pool_dma(9)struct ttm_pool_alloc_state(9)struct ttm_pool_tt_restore(9)Partial backup and restoration of a struct ttm_tt.(9)ttm_pool_free_range(9)ttm_pool_alloc(9)ttm_pool_restore_and_alloc(9)ttm_pool_free(9)ttm_pool_drop_backed_up(9)ttm_pool_backup(9)ttm_pool_synchronize_shrinkers(9)ttm_pool_fini(9)ttm_pool_debugfs(9)ttm_pool_mgr_init(9)ttm_pool_mgr_fini(9)
π§ okay that's the page!! this came out of ./drivers/gpu/drm/ttm and it's stamped October 2026 β go init a pool, bestie, you got this πβ¨ππ¦πΈπ
π«Άππ₯ππβππππ§π
π¦ 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