sba_map_sg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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:


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