ttm_pool_restore_and_alloc(9)
π ttm_pool_restore_and_alloc π
okay so bestie, welcome to the Kernel API Manual β¨ β yes, that's the manual we're in, and today's main character is ttm_pool_restore_and_alloc. She's a function. She fills things. She restores things. Let's get into it π«Ά
πΈ NAME πΈ
ttm_pool_restore_and_alloc β literally what it says on the tin: fill a ttm_tt, and while you're at it, restore content that was previously backed up. π
β¨ SYNOPSIS β¨
int ttm_pool_restore_and_alloc (struct ttm_pool *pool , struct ttm_tt
*tt , const struct ttm_operation_ctx *ctx );
that's the whole vibe check right there β three args, one int coming back at you π
π¦ ARGUMENTS π¦
poolβ thettm_poolto use. like, the pool she's swimming in πββοΈttβ thettm_ttobject to fill. this is the thing getting stuffed with goodies.ctxβ the operation context. the ~situationship~ context, if you will π
π DESCRIPTION π
so here's the tea, bestie β: this function fills the ttm_tt object with pages, and it also makes sure to DMA map them when necessary. no cap, both jobs. and on top of all that? she reads in the backed-up content π₯β¨
it's giving "restoration era" and honestly? obsessed.
β RETURN β
0on successe (that's the source's spelling, not mine, we love her anyway ππ)- a negative error code otherwise π
π SEE ALSO π
- 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_free(9)ttm_pool_drop_backed_up(9)ttm_pool_backup(9)ttm_pool_init(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 whole page, bestie, go forth and restore πβ¨ this lil number lives over in ./drivers/gpu/drm/ttm, dated October 2026 β mwah, stan her, bye ππ
π¦ 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