copy_frags(9)
π copy_frags(9) β like, the whole vibe
Okay bestie, so this one lives in the Kernel API Manual (yes, that manual, the iconic one), and honestly? It's a little function with a big job. Let me put you on. π«Ά
β¨ NAME β¨
copy_frags β copy fragments from a gather list into skb_shared_info. That's it, that's the whole personality. π
πΈ SYNOPSIS πΈ
void copy_frags (struct sk_buff *skb , const struct pkt_gl *gl ,
unsigned int offset );
Returns void, because sometimes you just do the thing and don't need a receipt. π
π¦ ARGUMENTS π¦
skbβ the destinationskb, aka where all the fragments are moving to. Main character energy.glβ the source internal packet gather list. It's the one holding all the frags, bestie.offsetβ packet start offset in the first page. Like, where in page one the packet actually begins. Don't lose it. π
π₯ DESCRIPTION π₯
So what it does is: it copies an internal packet gather list into a Linux skb_shared_info structure. That's the whole description, no cap. Literally copy frags β skb_shared_info. Short, sweet, slays. β¨
π SEE ALSO π
The kernel file is ./drivers/net/ethernet/chelsio/cxgb4vf/sge.c β go read it if you're feeling brave, iykyk. π§
And here's the whole friend group, all of them, in order:
get_buf_addr(9),is_buf_mapped(9),need_skb_unmap(9),txq_avail(9),fl_cap(9),fl_starving(9),map_skb(9),free_tx_desc(9),reclaim_completed_tx(9),get_buf_size(9),free_rx_bufs(9),unmap_rx_buf(9),ring_fl_db(9),set_rx_sw_desc(9),refill_fl(9),alloc_ring(9),sgl_len(9),flits_to_desc(9),is_eth_imm(9),calc_tx_flits(9),write_sgl(9),ring_tx_db(9),inline_tx_skb(9),t4vf_eth_xmit(9),t4vf_pktgl_to_skb(9),t4vf_pktgl_free(9),do_gro(9),t4vf_ethrx_handler(9),is_new_response(9),restore_rx_bufs(9),rspq_next(9),process_responses(9),napi_rx_handler(9),t4vf_intr_handler(9),sge_rx_timer_cb(9),sge_tx_timer_cb(9),bar2_address(9),t4vf_sge_alloc_rxq(9),t4vf_sge_alloc_eth_txq(9),t4vf_free_sge_resources(9),t4vf_sge_start(9),t4vf_sge_stop(9),t4vf_sge_init(9)
That's forty-two references, and yes I counted, and yes I'm obsessed with all of them. π
π Real talk though: everything above is exactly what the page says. I'm not out here inventing extra behaviour for the plot, bestie β no guessing, no extra lore. π
Okay that's the page!! It shipped out of ./drivers/net/ethernet/chelsio... in October 2026, and your girl is signing off β mwah, go copy some frags, you've got this πππ
π¦ 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