sba_alloc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

Okay so welcome to sba_alloc(9), straight out of the Kernel API Manual, bestie πŸ’… β€” manual name folded in right here because we're cute like that. This page is all about sba_alloc β€” allocate/map shared mem for DMA. That's the whole name line, periodt ✨.

✨ SYNOPSIS ✨

void * sba_alloc (struct device *hwdev , size_t size , dma_addr_t
*dma_handle , gfp_t gfp , unsigned long attrs );

πŸ¦‹ ARGUMENTS πŸ¦‹

Group-chat roll call, no skips:

  • hwdev β€” the struct device * that's the PCI instance owned by the driver that's asking. Like, the driver is the one asking, and this is its PCI device moment 🫢.
  • size β€” number of bytes mapped in the driver buffer. That's the byte count, bestie, no cap.
  • dma_handle β€” IOVA of the new buffer. Iconic little handle ✨.
  • gfp β€” allocation flags. Just flags doing their flag thing.
  • attrs β€” attributes. Yep, the attributes πŸ’œ.

πŸ’œ DESCRIPTION πŸ’œ

This is lowkey the shortest description ever: see Documentation/core-api/dma-api-howto.rst πŸ‘‘. That's the whole vibe β€” go read that doc, bestie. No extra lore here.

πŸŽ€ SEE ALSO πŸŽ€

Kernel file ./drivers/parisc/sba_iommu.c is the main-character file for this one πŸ’–. Also pls go peek at these related pages:


Sign-off szn 🫢: this page is from ./drivers/parisc, dated October 2026, and it's still sba_alloc(9) β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from