map_txpool_buf_to_ltb(9)
π map_txpool_buf_to_ltb β like, the whole manual page, bestie
okay so welcome to the map_txpool_buf_to_ltb(9) page, section 9 of the Kernel API Manual πΈ this is the ibmvnic corner of the kernel and honestly it's giving niche-but-iconic. sit down, grab a strawberry π, we're mapping buffers to LTBs and it's gonna slay.
β¨ NAME β¨
map_txpool_buf_to_ltb β literally maps a given txpool buffer to an offset in an LTB. that's it. that's the whole vibe. π¦
π SYNOPSIS π
void map_txpool_buf_to_ltb (struct ibmvnic_tx_pool *txpool , unsigned
int bufidx , struct ibmvnic_long_term_buff **ltbp , unsigned int *offset
);
no cap, that's the signature. void return, four params, copy it exactly or the compiler will come for you π
π ARGUMENTS π
txpoolβ the transmit buffer pool that's holding your buffer. it's the home base, the main character, the pool bestie π«Άbufidxβ the index of the buffer insidetxpool. which one? this one. the one at this index β¨ltbpβ (Output) pointer to the long term buffer (LTB) that contains the buffer. output means this function fills it in for you, you don't set it πoffsetβ (Output) offset of the buffer in the LTB, measured fromltbp. also an output, also gets filled in, also your problem to receive π
π₯ DESCRIPTION π₯
so what does it actually do? take the buffer identified by the pair [txpool, bufidx] β that's the tag team, the duo, the it-couple β and map it to an LTB in the pool, plus the corresponding offset for it. that's the whole job. it maps, it does not make the coffee, periodt π
π¦ SEE ALSO π¦
the kernel file lives at ./drivers/net/ethernet/ibm/ibmvnic.c β go read it, iykyk π
and the whole friend group:
ibmvnic_wait_for_completion(9)reuse_ltb(9)alloc_long_term_buff(9)free_ltb_set(9)alloc_ltb_set(9)map_rxpool_buf_to_ltb(9)release_rx_pools(9)reuse_rx_pools(9)init_rx_pools(9)release_tx_pools(9)reuse_tx_pools(9)init_tx_pools(9)get_hdr_lens(9)create_hdr_descs(9)build_hdr_descs_arr(9)do_passive_init(9)
ok that's the page π every flag, every param, every reference β all present and accounted for, no cap. go map some buffers, bestie π
β¨ and that's the whole thing β¨ β brought to you by ./drivers/net/ethernet/ibm, dated October 2026, filed under map_txpool_buf_to_ltb(9). mwah ππ
π¦ 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