ib_ud_header_init(9)
π¦ ib_ud_header_init(9) β NAME π¦
okay so bestie, welcome to the Kernel API Manual β¨ and today's main character is ib_ud_header_init β which literally just initializes a UD header structure. that's it. that's the vibe. it sets up your struct ib_ud_header so it's ready to be filled in and packed π
β¨ SYNOPSIS β¨
int ib_ud_header_init (int payload_bytes , int lrh_present , int
eth_present , int vlan_present , int grh_present , int ip_version , int
udp_present , int immediate_present , struct ib_ud_header *header );
yep, that's a lot of ints. nine of them. count 'em. don't worry though, we're gonna go through every single one together π«Ά
π ARGUMENTS π
payload_bytesβ how long the packet payload is. the length, the amount of bytes, the whole point πlrh_presentβ tells us if the LRH is present. yes or no, that's the whole job.eth_presentβ same deal but for the Eth header β is it there or not?vlan_presentβ is this packet tagged vlan? enquiring minds want to know π§grh_presentβ the GRH flag. if it's non-zero, the GRH will be included. no cap.ip_versionβ if non-zero, an IP header gets included, either V4 or V6. slay πudp_presentβ if non-zero, a UDP header will be included. periodt.immediate_presentβ specifies if immediate data is present πheaderβ the structure to initialize. the actual star of the show, the main character energy π
π₯ SEE ALSO π₯
- Kernel file
./drivers/infiniband/core/ud_header.c ib_ud_header_pack(9)β like, go read that one next, iykyk π
ngl bestie, if you're in ./drivers/infiniband/core you already know what's up. go build something iconic πβ¨
and that's the whole page, mwah π β this little gem lives in ./drivers/infiniband/core, dated October 2026, and it's ib_ud_header_init(9) forever and always ππ¦β
π¦ 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