t4vf_pktgl_to_skb(9)
π t4vf_pktgl_to_skb β a Kernel API Manual moment β¨
okay so bestie, welcome to section 9 of the Kernel API Manual β yes we're in the kernel, yes we're in the networking girlies' corner, and yes this page is about t4vf_pktgl_to_skb(9) π
πΈ NAME πΈ
t4vf_pktgl_to_skb β literally builds an sk_buff out of a packet gather list, no cap π«Ά
β¨ SYNOPSIS β¨
struct sk_buff * t4vf_pktgl_to_skb (const struct pkt_gl *gl , unsigned
int skb_len , unsigned int pull_len );
like, that's the whole signature, she's cute, she takes three things and returns a pointer π
π¦ ARGUMENTS π¦
glβ the gather list itself, the main character of this whole operation πskb_lenβ the size of thesk_buffmain body if it carries fragments (conditional queen behaviour fr fr)pull_lenβ how much data we're moving to thesk_buff's main body π
π DESCRIPTION π
So what she does: builds an sk_buff from the given packet gather list. That's it, that's the vibe π
Returns the sk_buff β or NULL if the sk_buff allocation failed π like if the allocation said "not today", you get NULL, and that's a real thing you gotta handle, no shortcuts bestie.
ngl the NULL return is not a suggestion, it's giving "check me or perish" π
so go check it.
π₯ SEE ALSO π₯
the whole friend group showed up, iykyk:
- Kernel file
./drivers/net/ethernet/chelsio/cxgb4vf/sge.c 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),copy_frags(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)
okay that's the whole page, you ate that π and for the sign-off: this little beauty comes from ./drivers/net/ethernet/chelsio... and it's dated October 2026, landing you right back at t4vf_pktgl_to_skb(9). periodt. π§ββοΈβ
π¦ 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