for_each_sg_dma_page(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… for_each_sg_dma_page(9) β€” the Kernel API Manual page, bestie edition πŸ’…

🌸 NAME 🌸

for_each_sg_dma_page β€” okay so this icon literally iterates over the pages of the sg list you give it. That's the assignment. πŸ‘‘

✨ SYNOPSIS ✨

for_each_sg_dma_page (sglist , dma_iter , dma_nents , pgoffset );

πŸŽ€ ARGUMENTS πŸŽ€

  • sglist β€” the sglist to iterate over, bestie. That's the whole vibe.
  • dma_iter β€” the DMA page iterator that holds the current page. It's giving current-page main character energy ✨
  • dma_nents β€” the maximum number of sg entries to iterate over; this is literally the value returned from dma_map_sg. No cap. πŸ”₯
  • pgoffset β€” the starting page offset, measured in pages. Yep, pages. 🫢

πŸ’– DESCRIPTION πŸ’–

Callers may use sg_page_iter_dma_address to get each page's DMA address. In each loop it operates on PAGE_SIZE unit. Like, every loop is operating on that PAGE_SIZE unit. Periodt. πŸ’…

πŸ¦‹ SEE ALSO πŸ¦‹


xoxo, your local Unix bestie πŸ’œ β€” source/version: ./include/linux Β· date: October 2026 Β· page: for_each_sg_dma_page(9)

πŸ“¦ where this page comes from