tn40_tx_map_skb(9)
π 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 tounsigned longvalue. Yep, literally βpointer tounsigned longvalueβ β 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:
tn40_create_rx_ring(9)tn40_rx_alloc_buffers(9)tn40_tx_space(9)tn40_tx_push_desc(9)tn40_tx_push_desc_safe(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms