dmam_pool_create(9)
π dmam_pool_create(9) π
okay so this is a page straight out of the Kernel API Manual bestie, and it's about dmam_pool_create β the managed glow-up of dma_pool_create(). yes ma'am, it's giving "I handle the cleanup so you don't have to" β¨
πΈ NAME πΈ
dmam_pool_create β the managed version of dma_pool_create(). literally the same vibe but it cleans up after itself π«Ά
π SYNOPSIS π
struct dma_pool * dmam_pool_create (const char *name , struct device
*dev , size_t size , size_t align , size_t allocation );
π¦ ARGUMENTS π¦
nameβ the pool's name, bestie. it's for diagnostics, so pick something cute and identifiable πdevβ the device that's gonna be doing the DMA. the main character of this whole story fr fr πsizeβ how big the blocks in this pool are π₯alignβ the alignment requirement for the blocks; must be a power of two, no cap, that's a hard rule πallocationβ returned blocks won't cross this boundary (or zero, if you're feeling boundary-less) β
π DESCRIPTION π
So this is the managed dma_pool_create. The DMA pool you make with this function is automatically destroyed on driver detach β like, you don't even have to ask, it just handles it. main character energy but make it responsible π
π RETURN π
You get back a managed DMA allocation pool with all the requested characteristics you asked for... or NULL if one can't be created. sad but true π
β¨ SEE ALSO β¨
not me dropping the whole friend group π β you already know the source lives in the Kernel file ./mm/dmapool.c, and the squad is:
π«Ά that's the whole page bestie, go forth and pool responsibly π«Ά
kisses from ./mm β this one's dated October 2026, and yes, it's dmam_pool_create(9) out of 9, 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