ttm_pool_restore_and_alloc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 β€” the ttm_pool to use. like, the pool she's swimming in πŸŠβ€β™€οΈ
  • tt β€” the ttm_tt object 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 ⭐

  • 0 on successe (that's the source's spelling, not mine, we love her anyway πŸ˜­πŸ’–)
  • a negative error code otherwise πŸ’€

🌈 SEE ALSO 🌈


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