tx_map_skb(9)
π tx_map_skb β a Kernel API Manual moment π
okay so bestie, welcome to tx_map_skb(9), the Kernel API Manual page that's literally about DMA-mapping an skb and handing you back some sges. yes ma'am, we're in the networking trenches today and it's giving iconic. π¦
β¨ NAME β¨
tx_map_skb β dma mapping for skb and return sges
like, it maps the skb for DMA and gives you the scatter-gather entries back. that's the whole vibe. no cap. π
πΈ SYNOPSIS πΈ
int tx_map_skb (struct hinic_dev *nic_dev , struct sk_buff *skb , struct
hinic_sge *sges );
she takes three things and returns an int. short, sweet, main character energy. π
π ARGUMENTS π
nic_devβ nic device. that's your hinic device struct bestie, she's the whole context here. π«Άskbβ the skb. yes, the skb. the socket buffer in question. she's the moment. πsgesβ returned sges. you pass this in and it comes back all filled with scatter-gather entries. lowkey the whole point tbh. β¨
π¦ DESCRIPTION π¦
Return 0 - Success, negative - Failure
that's it, that's the tea. 0 means slay, everything went great. anything negative means it did not go great and you should probably go check on that. π
π SEE ALSO π
- Kernel file
./drivers/net/ethernet/huawei/hinic/hinic_tx.cβ the source file, go read her, she's right there. π hinic_txq_clean_stats(9)hinic_txq_get_stats(9)txq_stats_init(9)tx_unmap_skb(9)tx_free_skb(9)free_all_tx_skbs(9)free_tx_poll(9)hinic_init_txq(9)hinic_clean_txq(9)
the whole friend group fr fr β go say hi to all of them, they all live in the same hinic tx neighborhood. π
ok and just so you know, this page is from ./drivers/net/ethernet/huawei/... and it's dated October 2026. consider that the cute little sign-off bestie, mwah ππΈ
periodt. go map some skbs responsibly. ππ§
π¦ 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