sg_dma_mark_bus_address(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… sg_dma_mark_bus_address β€” the Kernel API Manual, bestie edition ✨

okay so this is sg_dma_mark_bus_address(9), straight out of the Kernel API Manual, and it's honestly such a tiny little function with one very specific job πŸŽ€


✨ NAME ✨

sg_dma_mark_bus_address β€” literally just marks the scatterlist entry as a bus address, that's the whole vibe πŸ’…


🌸 SYNOPSIS 🌸

void sg_dma_mark_bus_address (struct scatterlist *sg );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • sg β€” the SG entry, bestie. that's the one you're marking 🫢

πŸ”₯ DESCRIPTION πŸ”₯

So what this does is it marks the sg entry you passed in, to indicate that the dma_address is a bus address and doesn't need to be unmapped πŸ‘‘

Heads up though, this is NOT for everyone β€” this should only be used by dma_map_sg implementations to mark bus addresses, so that they can be properly cleaned up in dma_unmap_sg. that's it, that's the rule, no cap 😌


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./include/linux/scatterlist.h plus the whole scatterlist friend group, all of them present and accounted for:


so yeah, that's the page πŸ“ it lives over at ./include/linux, dated October 2026, and this whole thing is sg_dma_mark_bus_address(9) from the Kernel API Manual β€” stan the scatterlist, periodt πŸ’–πŸ’…βœ¨

πŸ“¦ where this page comes from