hfi1_make_ruc_header_16B(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… hfi1_make_ruc_header_16B(9) β€” kernel API manual, but make it make sense πŸŽ€

okay so bestie, buckle up, this one's a kernel API manual page for hfi1_make_ruc_header_16B, and honestly? it's giving "small function, big responsibilities." ✨


🌸 NAME 🌸

hfi1_make_ruc_header_16B β€” build a 16B header. that's it, that's the whole vibe. it builds. a header. sixteen B's worth. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

void hfi1_make_ruc_header_16B (struct rvt_qp *qp , struct
ib_other_headers *ohdr , u32 bth0 , u32 bth1 , u32 bth2 , int middle ,
struct hfi1_pkt_state *ps );

no cap, that's the exact signature, don't @ me. it returns void, so it's not gonna hand you back a value β€” it's a "do the thing" kind of function, main character energy fr fr. πŸ‘‘


🧚 ARGUMENTS 🧚

  • qp β€” the queue pair. iconic, essential, the whole point. πŸ’–
  • ohdr β€” a pointer to the destination header memory. it's where the header actually gets written, so like… be nice to it. 🫢
  • bth0 β€” bth0 passed in from the RC/UC builder. yes it's literally named the same thing, yes that's how the kernel rolls. πŸ™ˆ
  • bth1 β€” bth1 passed in from the RC/UC builder. same deal, different digit. ✨
  • bth2 β€” bth2 passed in from the RC/UC builder. completing the holy trinity of bth parameters ngl. πŸ’€
  • middle β€” non zero implies indicates ahg "could" be used. keeping the original's exact phrasing there because that "implies indicates" is lowkey a whole mood. 😭
  • ps β€” the current packet state. the vibe check for the packet, basically. 🌈

⭐ DESCRIPTION ⭐

so what does this routine actually do? it builds a 16B header, and along the way it may disarm ahg under these situations:

  • packet needs a GRH
  • BECN needed
  • migration state not IB_MIG_MIGRATED

that's the tea. β˜• if any of those three things are happening, ahg gets disarmed. periodt. πŸ”₯

bestie note: "may" is doing a lot of work in that sentence β€” that's the original's wording, and we respect it. don't go assuming it always disarms. πŸ’…

πŸ‘‘ SEE ALSO πŸ‘‘

kernel file ./drivers/infiniband/hw/hfi1/ruc.c and also these absolute legends:

go read them, they're all friends of this function 🫢✨


πŸŽ€ sign-off πŸŽ€

this whole flirty little page lives under ./drivers/infiniband/hw/hfi1, and the source/version stamp on it says October 2026 β€” so yeah, future-core of it all. πŸ’œ

later bestie, go build some headers πŸ’…πŸ’–

hfi1_make_ruc_header_16B(9) β€” ./drivers/infiniband/hw/hfi1 β€” October 2026 🌸

πŸ“¦ where this page comes from