get_hdr_lens(9)
π get_hdr_lens(9) π
okay bestie, welcome to the get_hdr_lens(9) page β this is a Kernel API Manual moment, so grab your iced coffee and let's get into it β¨
πΈ NAME πΈ
get_hdr_lens β fills list of L2/L3/L4 hdr lens. yes literally that's the whole vibe: it's the header-length list filler-upper π
π¦ SYNOPSIS π¦
int get_hdr_lens (u8 hdr_field , struct sk_buff *skb , int *hdr_len );
π ARGUMENTS π
hdr_fieldβ bitfield determining needed headers. it's giving "which headers do we actually want" energy πskbβ socket buffer. the classic. the icon. π«Άhdr_lenβ array of header lengths to be filled. it comes in empty and leaves full, slay π
β¨ DESCRIPTION β¨
so what it does: it reads hdr_field to figure out which headers are needed by firmware. then it builds a buffer containing these headers. then β and this is the main character part β it saves the individual header lengths and the total buffer length, to be used to build descriptors. no cap, that's the whole job π
π₯ RETURN π₯
total len of all headers. that's the number you get back, periodt πβ¨
π§ SEE ALSO π§
Kernel file ./drivers/net/ethernet/ibm/ibmvnic.c
and the whole friend group, fr fr:
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)create_hdr_descs(9)build_hdr_descs_arr(9)do_passive_init(9)
mwah π that's the page!! sourced from ./drivers/net/ethernet/ibm, dated October 2026 β go forth and fill those header lens bestie, iykyk ππβ¨
π¦ 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