sg_page_iter_dma_address(9)
π NAME
Okay so bestie, gather round: sg_page_iter_dma_address β she's the one that hands you the dma address of the current page that's being held by the page iterator. That's it, that's her whole job, and she does it flawlessly. π
This lil page lives in the Kernel API Manual (section 9, kernel devs only, iykyk β¨).
β¨ SYNOPSIS
dma_addr_t sg_page_iter_dma_address (struct sg_dma_page_iter *dma_iter);
That's the whole signature, gorgeous. No sneaky extra args. π
π ARGUMENTS
dma_iterβ the page iterator that's holding the page. Literally just hand her the iterator, she'll find the page, no cap. π«Ά
πΈ SEE ALSO
Like, all her friends live in the same file, ./include/linux/scatterlist.h, and honestly the whole scatterlist friend group is iconic. Go say hi to:
sg_next(9)sg_assign_page(9)sg_set_page(9)sg_set_folio(9)sg_set_buf(9)sg_chain(9)sg_mark_end(9)sg_unmark_end(9)sg_dma_is_bus_address(9)sg_dma_mark_bus_address(9)sg_dma_unmark_bus_address(9)sg_dma_is_swiotlb(9)sg_dma_mark_swiotlb(9)sg_phys(9)sg_virt(9)sg_init_marker(9)sg_alloc_table_from_pages(9)sg_page_iter_page(9)for_each_sg_page(9)for_each_sg_dma_page(9)for_each_sgtable_page(9)for_each_sgtable_dma_page(9)
Reminder bestie: everything above is from ./include/linux/scatterlist.h, so if you're lost, that's your map. πΊοΈπ
and that's the whole page, periodt π
β brought to you by the source dir ./include/linux, dated October 2026, serving Kernel API Manual realness. Mwah, go read some scatterlist code, ily π¦π
π¦ 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