get_buf_size(9)
π get_buf_size β a whole manpage, bestie
okay so first things first, we're in the Kernel API Manual (section 9, the kernel-API girlies) and this page is called get_buf_size. That's the whole header situation, consider it handled π
β¨ NAME β¨
get_buf_size β literally just returns the size of an RX Free List buffer. that's it. that's the function. no cap π
β¨ SYNOPSIS β¨
int get_buf_size (const struct adapter *adapter , const struct
rx_sw_desc *sdesc );
copy it exactly like that, spacing and all, she's sensitive π
β¨ ARGUMENTS β¨
adapterβ a pointer to the associated adapter. like, the adapter she's attached to. her plus-one π«Άsdescβ a pointer to the software buffer descriptor. the sw desc in question. iconic behavior honestly β¨
β¨ SEE ALSO β¨
bestie there is a whole friend group here, and you're gonna meet all of them. no skipping, i'm serious, this is the roster π
- Kernel file
./drivers/net/ethernet/chelsio/cxgb4vf/sge.cβ yes, that's the actual file, go look, she lives there π 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)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_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)
like, the whole sge.c cast list. read them all, they're all main characters π
ngl this page is short and sweet β which means there is zero excuse for not remembering that get_buf_size returns the size of an RX Free List buffer. periodt. π
and that's the vibe check, done β
this lil page came from the ./drivers/net/ethernet/chelsio... source, dated October 2026, and she answers to get_buf_size(9) β mwah, love her, bye π¦π
π¦ 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