srpt_mad_send_handler(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– srpt_mad_send_handler(9) β€” the MAD send completion callback bestie πŸ’–

okay so real talk, this one is from the Kernel API Manual, section 9 β€” yes, the kernel section, we love a kernel moment ✨ grab a snack and let's get into it.


πŸŽ€ NAME πŸŽ€

srpt_mad_send_handler β€” literally the MAD send completion callback. that's the whole vibe. it's the little function that gets called back when a MAD has been sent, and honestly? iconic. 🫢


✨ SYNOPSIS ✨

void srpt_mad_send_handler (struct ib_mad_agent *mad_agent , struct
ib_mad_send_wc *mad_wc );

no cap, that's the signature β€” returns void, takes two pointers, done. πŸ’…


🌸 ARGUMENTS 🌸

  • mad_agent β€” bestie this is the return value of ib_register_mad_agent. that's it, that's the whole thing, it's the agent you got handed back earlier. keep it, you'll need it. πŸ¦‹
  • mad_wc β€” a work completion reporting that the MAD has been sent. so like, the little receipt that says "yeah, it went out" πŸ“¬βœ¨
heads up: both of these are just describing what gets passed in β€” no extra lore, no plot twists, that's genuinely all she wrote πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

the kernel file lives right here, in all its glory:

Kernel file ./drivers/infiniband/ulp/srpt/ib_srpt.c

and now, the full friend group β€” every single one of these, no skips, no cuts, periodt 🌈:

like, that's the whole squad, we're not leaving anybody out πŸ˜­πŸ’œ


and that's the page!! so short, so sweet, so very kernel of her πŸ’… this little section came from the source path ./drivers/infiniband/ulp/srpt, dated October 2026 β€” mwah, love that for us πŸ“βœ¨ bye bestie, go send some MADs πŸ§šπŸŽ€

πŸ“¦ where this page comes from