sba_unmap_sg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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


ngl, all these sba_* friends are literally the group chat, and sba_unmap_sg is 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