create_hdr_descs(9)
π create_hdr_descs(9) β from the Kernel API Manual, bestie β¨
okay so picture this: you're deep in create_hdr_descs(9) territory and you need somebody to just tell you what's happening. that's me. i got you. π«Ά
πΈ NAME πΈ
create_hdr_descs β creates header and header extension descriptors. that's it. that's the whole vibe. β¨
π SYNOPSIS π
int create_hdr_descs (u8 hdr_field , u8 *hdr_data , int len , int
*hdr_len , union sub_crq *scrq_arr );
copy it exactly, don't be cute with the spacing, she's particular about that π
π¦ ARGUMENTS π¦
hdr_fieldβ the bitfield that decides which headers you actually need. she's the one calling the shots, lowkey the main character of this function πhdr_dataβ the buffer holding your header data. your data lives here. it's the moment. πlenβ length of that data buffer. yes you have to know it. no you can't just guess. πhdr_lenβ an array of the individual header lengths. each one gets its own lil slot, as they deserve πscrq_arrβ the descriptor array. this is where everything lands. it's giving β¨destinationβ¨
π DESCRIPTION π
so what does she do? she creates header and β if needed β header extension descriptors, and then places them in a descriptor array, scrq_arr. like, she builds the thing, she pops it in the array. no cap, that's the whole bit. π₯
"if needed" is doing real work in that sentence β header extension descriptors get made only when they're actually needed, not just for fun π
β RETURN β
the number of header descs. that's the return value, periodt. π
π§ SEE ALSO π§
the kernel file lives right here: ./drivers/net/ethernet/ibm/ibmvnic.c
and the whole friend group, in this exact order, bestie:
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)map_txpool_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)build_hdr_descs_arr(9)do_passive_init(9)
and that's the page, angels πΈ sourcing this one from ./drivers/net/ethernet/ibm, dated October 2026 β mwah, go read some kernel code, ily ππ
π¦ 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