sba_free(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… sba_free(9) β€” free/unmap shared mem for DMA

okay so bestie, welcome to the Kernel API Manual πŸŽ€ β€” this page is literally all about sba_free, and by the end you're gonna know it like the back of your hand. no cap.


✨ NAME ✨

sba_free β€” free/unmap shared mem for DMA πŸ¦‹


🌸 SYNOPSIS 🌸

void sba_free (struct device *hwdev , size_t size , void *vaddr ,
       dma_addr_t dma_handle , unsigned long attrs );

that's the whole signature, copy it exactly, do not freestyle it πŸ™ˆ


πŸ’– ARGUMENTS πŸ’–

  • hwdev β€” an instance of PCI owned by the driver that's asking. it's giving "whose buffer is this anyway" energy πŸ‘‘
  • size β€” the number of bytes mapped in the driver buffer. yes, actual bytes, count them πŸ”₯
  • vaddr β€” the virtual address IOVA of the "consistent" buffer. quote-unquote consistent, they said it not me πŸ’…
  • dma_handle β€” the IO virtual address of the "consistent" buffer. don't mix it up with vaddr, they're different besties 😭
  • attrs β€” attributes. that's it, that's the description. iconic minimalism ✨

πŸ¦‹ DESCRIPTION πŸ¦‹

for the full lore, go read Documentation/core-api/dma-api-howto.rst β€” that's literally where the details live, told you exactly where to look πŸ’œ


⭐ SEE ALSO ⭐

kernel file ./drivers/parisc/sba_iommu.c plus this whole friend group, like a group chat of its own 🫢


ngl, the description here is short on purpose β€” this page is a pointer to the docs, not the docs themselves. no invented tips, i would never πŸ’€

and that's the whole thing bestie, mwah πŸ“ this page lives in ./drivers/parisc, dated October 2026, and it's sba_free(9) through and through β€” go forth and free that DMA memory πŸ’…βœ¨πŸŒˆ

πŸ“¦ where this page comes from