sba_unmap_phys(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ sba_unmap_phys(9) ✨

okay so bestie, we're in the Kernel API Manual today and this page is literally about sba_unmap_phys β€” it's giving "cleanup era" and honestly? we love a function that knows how to let go. πŸ¦‹


πŸ’… NAME πŸ’…

sba_unmap_phys β€” unmap one IOVA and free resources

like yes, that's the whole vibe: one IOVA, unmap it, free the resources, go home. periodt. ✨


🌸 SYNOPSIS 🌸

void sba_unmap_phys (struct device *dev , dma_addr_t iova , size_t size
, enum dma_data_direction direction , unsigned long attrs );

no cap, that's the exact signature β€” copy it exactly, don't be weird about it πŸ’–


πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” instance of PCI owned by the driver that's asking. iykyk, it's the driver's own device, bestie, nobody else's πŸ™ˆ
  • iova β€” the IOVA of a driver buffer that was previously mapped. like, you gotta have mapped it first, we're not out here unmapping random stuff πŸ’€
  • size β€” number of bytes mapped in the driver buffer. yes, the byte count, keep it accurate fr fr
  • direction β€” R/W or both. that's it, that's the whole description, she's concise πŸ‘‘
  • attrs β€” attributes 🫢

🌈 DESCRIPTION 🌈

See Documentation/core-api/dma-api-howto.rst

that's genuinely it, the docs said "go read the howto" and honestly? iconic. the lore is in the rst file, bestie, go read it πŸ“–βœ¨


🌟 SEE ALSO 🌟

Kernel file ./drivers/parisc/sba_iommu.c, plus the whole friend group of sba functions β€” a full roster, no one left out:


πŸ’€ reminder bestie: this frees resources. it's a real unmap, not a decorative one. don't go calling it on stuff that was never mapped, ok? 🫢

and that's the page!! mwah πŸ’‹ this one lives in ./drivers/parisc, dated October 2026, and it's sba_unmap_phys(9) all the way down β€” take care of her, she's a legend πŸŒΈπŸŽ€βœ¨

πŸ“¦ where this page comes from