sg_dma_mark_swiotlb(9)
π sg_dma_mark_swiotlb(9) β or, the kernel API manual, group-chat edition π
okay so bestie, you're in the Kernel API Manual and today's main character is sg_dma_mark_swiotlb(9). she's a small function with a big job and honestly? iconic.
β¨ NAME β¨
sg_dma_mark_swiotlb β the girl who marks the scatterlist for SWIOTLB bouncing π¦
πΈ SYNOPSIS πΈ
void sg_dma_mark_swiotlb (struct scatterlist *sg );
literally just that. one function, one pointer, zero return value. no cap. π
π ARGUMENTS π
sgβ the SG entry in question π your scatterlist bestie that's getting marked.
π DESCRIPTION π
so here's the vibe check: this marks a scatterlist for SWIOTLB bounce. that's the whole thing, that's the assignment. π«Ά
but listen β not all SG entries may be bounced. not everyone gets to bounce, and that's just how it is. π lowkey important detail, don't forget it.
also yes, the original says "Marks a a scatterlist" and we're keeping that energy. typos are human, we love her anyway π
π SEE ALSO π
the whole friend group, fr fr β they all live in the kernel file ./include/linux/scatterlist.h:
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_phys(9)sg_virt(9)sg_init_marker(9)sg_alloc_table_from_pages(9)sg_page_iter_page(9)sg_page_iter_dma_address(9)for_each_sg_page(9)for_each_sg_dma_page(9)for_each_sgtable_page(9)for_each_sgtable_dma_page(9)
that's twenty-two entries. twenty-two!! the way this header file has more lore than a streaming series ππ₯
mwah π that's the page, bestie. this whole thing lives in ./include/linux, and the manual itself is dated October 2026. yes, 2026. she's future-forward like that βπ§π
π¦ 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