dma_pool_zalloc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 β€” a GFP_* 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