dma_pool_zalloc(9)
π dma_pool_zalloc(9) π
okay so bestie, welcome to the Kernel API Manual β yes this is that dma_pool_zalloc(9) page, the one you've been scrolling past. sit down, hydrate, let's get into it π«Ά
β¨ NAME β¨
dma_pool_zalloc β get a zero-initialized block of DMA coherent memory. it's giving "allocation but make it clean" π
πΈ SYNOPSIS πΈ
void * dma_pool_zalloc (struct dma_pool *pool , gfp_t mem_flags ,
dma_addr_t *handle );
literally that's the whole call, no cap.
π ARGUMENTS π
poolβ the dma pool that will produce the block. it's the main character here, it's the one handing out the memory πmem_flagsβ aGFP_*bitmask. you know the drill, flags go here πhandleβ pointer to the dma address of the block. so it can tell you where the thing landed π
π¦ DESCRIPTION π¦
same as dma_pool_alloc, but the returned memory is zeroed. that's it, that's the whole personality β it's the identical twin of dma_pool_alloc except this one shows up with a clean slate β¨ zeroed memory, no leftover vibes, periodt.
π SEE ALSO π
- Kernel file
./include/linux/dmapool.hβ go read it, iykyk π
and that's a wrap, bestie!! this page came to you from ./include/linux, dated October 2026, and it's filed under dma_pool_zalloc(9) β so when you need it again you know exactly where to look π₯ slay, go allocate responsibly π§ββοΈπ·
π¦ 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