sba_map_sg(9)
π NAME π
<pink>sba_map_sg</pink> β map Scatter/Gather list β¨
okay so bestie, this is the <hotpink>sba_map_sg(9)</hotpink> page from the Kernel API Manual, and the vibe check is simple: we are <purple>mapping a Scatter/Gather list</purple>. no cap, that's the whole NAME, and honestly? iconic. periodt π
β¨ SYNOPSIS β¨
int sba_map_sg (struct device *dev , struct scatterlist *sglist , int
nents , enum dma_data_direction direction , unsigned long attrs );
π ARGUMENTS π
devβ the<mint>instance of PCI</mint>owned by the driver that's asking. like, who's requesting the map? this one right here π«Άsglistβ<yellow>array of buffer/length pairs</yellow>. the actual scatter/gather lineup, fr fr π«nentsβ<cyan>number of entries in list</cyan>. count 'em, bestie π’directionβ<peach>R/W or both</peach>. read, write, or both β that's the direction tea βattrsβ<lavender>attributes</lavender>. the attributes slot, keeping it cute β¨
π¦ DESCRIPTION π¦
See Documentation/core-api/dma-api-howto.rst π
that's literally it β i'm obsessed with how short this is. the description is just pointing you at Documentation/core-api/dma-api-howto.rst, so go read that for the full story β iykyk π
π SEE ALSO π
Kernel file ./drivers/parisc/sba_iommu.c β plus 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_unmap_sg(9)sba_get_iommu(9)sba_directed_lmmio(9)sba_distributed_lmmio(9)
okay that's the whole page, bestie π«Ά <rainbow>sba_map_sg(9)</rainbow> Β· source/version: ./drivers/parisc Β· date: October 2026 Β· go map those Scatter/Gather lists and slay π
β¨
π¦ 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