get_hdr_lens(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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:


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