sba_unmap_sg(9)
π sba_unmap_sg(9) β Kernel API Manual, but make it make sense π«Ά
okay so bestie, we're in the Kernel API Manual today and the star of the show is sba_unmap_sg(9) β yes, the unmap of a Scatter/Gather list, we love a cleanup arc β¨
πΈ NAME πΈ
sba_unmap_sg β unmap Scatter/Gather list. that's it, that's the whole vibe. she unmaps. she's done. π
π SYNOPSIS π
void sba_unmap_sg (struct device *dev , struct scatterlist *sglist ,
int nents , enum dma_data_direction direction , unsigned long attrs );
literally just copy that exactly, no cap, don't be editing the signature π
π¦ ARGUMENTS π¦
devβ the instance of PCI owned by the driver that's asking. like, who's the driver? this is her PCI. main character energy πsglistβ array of buffer/length pairs. a whole little lineup of them πnentsβ number of entries in list. count 'em, bestie π₯directionβ R/W or both. she can go either way, queen behavior πattrsβ attributes. the little extras, iykyk β
β¨ DESCRIPTION β¨
See Documentation/core-api/dma-api-howto.rst β that's the lore drop, go read it, it's giving required reading π§
π SEE ALSO π
Kernel file ./drivers/parisc/sba_iommu.c and honestly the whole friend group π«Ά:
sba_dump_ranges(9)sba_dump_tlb(9)sba_dump_pdir_entry(9)sba_check_pdir(9)sba_dump_sg(9)sba_search_bitmap(9)sba_alloc_range(9)sba_free_range(9)sba_io_pdir_entry(9)sba_mark_invalid(9)sba_dma_supported(9)sba_map_single(9)sba_unmap_phys(9)sba_alloc(9)sba_free(9)sba_map_sg(9)sba_get_iommu(9)sba_directed_lmmio(9)sba_distributed_lmmio(9)
ngl, all thesesba_*friends are literally the group chat, andsba_unmap_sgis the one who actually follows through π no cap, stan her.
okay that's the page!! this one lives in ./drivers/parisc, and it's dated October 2026 β yes, future-dated, she's ahead of her time π¦π slay, periodt β¨
π¦ 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