srpt_mad_send_handler(9)
π 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 ofib_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 π:
srpt_event_handler(9)srpt_srq_event(9)srpt_qp_event(9)srpt_set_ioc(9)srpt_get_class_port_info(9)srpt_get_iou(9)srpt_get_ioc(9)srpt_get_svc_entries(9)srpt_mgmt_method_get(9)srpt_mad_recv_handler(9)srpt_refresh_port(9)srpt_unregister_mad_agent(9)srpt_alloc_ioctx(9)srpt_free_ioctx(9)srpt_alloc_ioctx_ring(9)srpt_free_ioctx_ring(9)srpt_set_cmd_state(9)srpt_test_and_set_cmd_state(9)srpt_post_recv(9)srpt_zerolength_write(9)srpt_get_desc_tbl(9)srpt_init_ch_qp(9)srpt_ch_qp_rtr(9)srpt_ch_qp_rts(9)srpt_ch_qp_err(9)srpt_get_send_ioctx(9)srpt_abort_cmd(9)srpt_rdma_read_done(9)srpt_build_cmd_rsp(9)srpt_build_tskmgmt_rsp(9)srpt_handle_cmd(9)srpt_handle_tsk_mgmt(9)srpt_handle_new_iu(9)srpt_send_done(9)srpt_create_ch_ib(9)srpt_close_ch(9)srpt_cm_req_recv(9)srpt_cm_rtu_recv(9)srpt_cm_handler(9)srpt_queue_response(9)srpt_release_sport(9)srpt_lookup_port(9)srpt_add_one(9)srpt_remove_one(9)srpt_close_session(9)srpt_parse_i_port_id(9)srpt_make_tpg(9)srpt_drop_tpg(9)srpt_make_tport(9)srpt_drop_tport(9)srpt_init_module(9)
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
- 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