ib_dma_map_sg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

ib_dma_map_sg β€” okay so real talk, this is the Kernel API Manual entry that maps a scatter/gather list to DMA addresses ✨ like it takes your lil' list of memory chunks and hands back the DMA-address version, and honestly? iconic behavior πŸ’–


πŸŽ€ SYNOPSIS πŸŽ€

int ib_dma_map_sg (struct ib_device *dev , struct scatterlist *sg , int
nents , enum dma_data_direction direction );

🌸 ARGUMENTS 🌸

  • dev β€” bestie, this is the device: the one the DMA addresses are gonna be created for 🫢 no device, no mapping, no slay.
  • sg β€” the array of scatter/gather entries, aka the actual pile of chunks we're mapping πŸ’…
  • nents β€” the number of scatter/gather entries in that array πŸ”’ literally just how many of them there are.
  • direction β€” the direction of the DMA 🧭 which way the data's vibing, iykyk.

πŸ¦‹ SEE ALSO πŸ¦‹

Okay so this section is a whole friend group, and we're not leaving a single one of them out πŸ‘‘ they all live in the kernel file ./include/rdma/ib_verbs.h, and here's the entire squad, in order, no cap:


no cap, that's genuinely the whole list β€” don't skip any of them, they all matter πŸ’€

okay that's the whole page, bestie, we ate and left zero crumbs πŸ“ this lil' entry comes to you from ./include/rdma, dated October 2026, and it's ib_dma_map_sg(9) signing off β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from