qp_to_sdma_engine(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… qp_to_sdma_engine(9) β€” like, the Kernel API Manual entry you didn't know you needed πŸŽ€

okay so bestie, welcome to the glow-up of qp_to_sdma_engine(9) from the Kernel API Manual. this one's short and sweet but it's lowkey important, so let's get into it fr fr ✨


✨ NAME ✨

qp_to_sdma_engine β€” map a qp to a send engine πŸ¦‹

like, you hand it a qp, it hands you back the send engine. matchmaker energy honestly πŸ’–


🌸 SYNOPSIS 🌸

struct sdma_engine * qp_to_sdma_engine (struct rvt_qp *qp , u8 sc5 );

that's the whole thing, no cap. one function, two args, one send engine (or a NULL, we'll get there πŸ™ˆ).


🫢 ARGUMENTS 🫢

  • qp β€” the QP πŸ‘‘ like, the queue pair in question, the main character of this whole operation
  • sc5 β€” the 5 bit sc ⭐ exactly five bits of sc, not four, not six, five. we love a specific queen

πŸ”₯ RETURN πŸ”₯

a send engine for the qp πŸ’« … or NULL for SMI type qp πŸ’€

so yeah β€” if it's an SMI type qp, you get NULL. that's not an error bestie, that's just how it is, don't come for me 😭

🌈 SEE ALSO 🌈

go read those too, iykyk πŸ“šβœ¨


and that's the whole page bestie, you ate that πŸ’… this iconic little number lives over in ./drivers/infiniband/hw/hfi1 and the manual's dated October 2026 β€” so yeah, slightly future-coded of it, but we stan a forward-thinking manpage πŸ§šπŸ’œ

πŸ“¦ where this page comes from