sba_map_single(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… sba_map_single(9) β€” like, the Kernel API Manual page, bestie πŸŽ€

okay so picture this: you're a driver, you've got one (1) buffer, and you need it to be DMA-able. that's the whole plot. this is sba_map_single, and it maps one buffer and hands you back the IOVA for DMA. one. single. buffer. main character energy, no ensemble cast πŸ’…


✨ SYNOPSIS ✨

dma_addr_t sba_map_single (struct device *dev , phys_addr_t addr ,
size_t size , enum dma_data_direction direction );

like literally that's the whole signature, copy it exactly please, we don't freestyle function signatures in this house 🫢


🌸 ARGUMENTS 🌸

  • dev β€” the instance of PCI owned by the driver that's asking. like, whose driver is this? this one's. πŸ‘‘
  • addr β€” the driver buffer to map. the buffer in question. the one. the only.
  • size β€” number of bytes to map in that driver buffer. count 'em πŸ”’
  • direction β€” R/W or both. that's it, that's the option set, we contain multitudes 🌈

πŸ’– DESCRIPTION πŸ’–

ngl the entire description is a redirect, and honestly? iconic. go read:

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

that's the whole vibe check. it's giving "see attached" but make it kernel docs 😭


πŸ¦‹ SEE ALSO πŸ¦‹

okay bestie, buckle up, because this list is long and we are NOT skipping a single one of these. every single one. periodt.

the kernel file is ./drivers/parisc/sba_iommu.c, and then, in this exact order:

that's nineteen besties and we love every one of them, no cap 🌟


ok and before you go β€” huge shoutout to ./drivers/parisc, dropping this masterpiece in October 2026 πŸ’– the whole sba family ate and left absolutely no crumbs, fr fr 🧚✨
πŸ“¦ where this page comes from