tso_dma_map_init(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

Okay bestie, welcome to the tso_dma_map_init(9) page from the Kernel API Manual 🌸. This one is all about DMA-mapping your GSO payload regions, and she is lowkey iconic.

tso_dma_map_init β€” DMA-map GSO payload regions. Periodt πŸ’….


✨ SYNOPSIS ✨

int tso_dma_map_init (struct tso_dma_map *map , struct device *dev ,
       const struct sk_buff *skb , unsigned int hdr_len );

πŸŽ€ ARGUMENTS πŸŽ€

  • map β€” the <italic>map</italic> struct you’re initializing. Main character energy fr fr.
  • dev β€” the device used for DMA mapping. She’s doing the mapping work 🫢.
  • skb β€” the GSO skb, no cap.
  • hdr_len β€” per-segment header length, in bytes. Count β€˜em carefully bestie πŸ”₯.

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so here’s the tea: this function DMA-maps the linear payload β€” that’s the part after the headers, iykyk β€” and all the frags πŸ’–.

It prefers the DMA IOVA API, which gives you one contiguous mapping and one IOTLB sync. Slay. But if IOVA isn’t available, it falls back to per-region dma_map_phys like a responsible icon 🌈.

Then it positions the iterator at byte 0 of the payload. Very demure, very mindful ✨.


🌟 RETURN 🌟

  • 0 β€” success! We love to see it πŸ’œ.
  • -ENOMEM β€” DMA mapping failure 😭. The partial mappings are cleaned up internally, so no messy leftovers, thank goodness πŸŽ€.

πŸ‘‘ SEE ALSO πŸ‘‘


mwah πŸ’‹ β€” this cutie came from ./net/core, dated October 2026 πŸŽ€βœ¨

πŸ“¦ where this page comes from