tn40_tx_map_skb(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ tn40_tx_map_skb(9): Kernel API Manual, but make it cute πŸŽ€

okay so bestie, this is the manual page for tn40_tx_map_skb β€” yes, the manual name is literally tn40_tx_map_skb(9), and we are so back. πŸ’… This is the Kernel API Manual energy you asked for, and it's giving β€œDMA mappings explained by your favorite group chat.” πŸ¦‹

✨ NAME ✨

tn40_tx_map_skb β€” create and store DMA mappings for skb's data blocks πŸ’–

🌸 SYNOPSIS 🌸

int tn40_tx_map_skb (struct tn40_priv *priv , struct sk_buff *skb ,
       struct tn40_txd_desc *txdd , unsigned int *pkt_len );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • priv β€” NIC private structure. That's the NIC's own private-structure moment, no cap. 🫢
  • skb β€” socket buffer to map. This is the skb getting its DMA-mapping glow-up. ✨
  • txdd β€” pointer to tx descriptor to be updated. It's the descriptor that's about to be edited, bestie. πŸ’…
  • pkt_len β€” pointer to unsigned long value. Yep, literally β€œpointer to unsigned long value” β€” keep it moving. πŸ‘‘

πŸ”₯ DESCRIPTION πŸ”₯

okay so the actual tea: this function creates DMA mappings for skb's data blocks and writes them to the PBL of a new tx descriptor. It also stores them in the tx db so they could be unmapped after the data has been sent β€” no lingering mappings, periodt. πŸ”₯

It is the responsibility of the caller to make sure that there is enough space in the txdb. That is not a suggestion, bestie β€” check the space. πŸ’€ The last element holds a pointer to skb itself and is marked with a zero length. ✨

πŸ’œ RETURN πŸ’œ

0 on success and a negative value on error. That's it β€” iconic, simple, and negative means something went sideways. 😭

🌈 SEE ALSO 🌈

Kernel file ./drivers/net/ethernet/tehuti/tn40.c β€” plus the whole bestie squad of related calls:


signing off from ./drivers/net/ethernet/tehuti β€” source/version vibes β€” with the date October 2026, for the manual page tn40_tx_map_skb(9). stay mapped, stay iconic πŸ’–πŸ¦‹βœ¨

πŸ“¦ where this page comes from