ib_register_mad_agent(9)
πΈ NAME πΈ
ib_register_mad_agent β register to send/receive MADs. That's the whole assignment, bestie. This is the ib_register_mad_agent page from the Kernel API Manual, and it's lowkey giving "sign me up for MADs" main character energy. πβ¨
π SYNOPSIS π
okay so here's the exact signature, copy it with your whole chest:
struct ib_mad_agent * ib_register_mad_agent (struct ib_device *device ,
u32 port_num , enum ib_qp_type qp_type , struct ib_mad_reg_req
*mad_reg_req , u8 rmpp_version , ib_mad_send_handler send_handler ,
ib_mad_recv_handler recv_handler , void *context , u32
registration_flags );
π¦ ARGUMENTS π¦
deviceβ the device to register with. That's your main character device, no cap.port_numβ the port on the specified device to use. Pick the port, bestie.qp_typeβ specifies which QP to access. Vibe check: it must be eitherIB_QPT_SMIorIB_QPT_GSIβ those are the only two choices, periodt.mad_reg_reqβ specifies which unsolicited MADs should be received by the caller. This parameter may beNULLif the caller only wishes to receive solicited responses. So if you're only here for solicited responses,NULLis allowed β iykyk.rmpp_versionβ if set, indicates that the client will send and receive MADs that contain the RMPP header for the given version. If set to0, indicates that RMPP is not used by this client. So0means no RMPP for this client, fr fr.send_handlerβ the completion callback routine invoked after a send request has completed. It's the little "you're done sending" callback moment. β¨recv_handlerβ the completion callback routine invoked for a received MAD. This one handles the received-MAD callback vibes. πcontextβ user specified context associated with the registration. Your context, your registration, your era.registration_flagsβ registration flags to set for this agent. Set those flags and slay. π
π₯ SEE ALSO π₯
okay so these are the SEE ALSO besties, and they all matter:
- Kernel file
./include/rdma/ib_mad.h ib_get_cpi_resp_time(9)ib_get_cpi_capmask2(9)ib_set_cpi_capmask2(9)opa_get_cpi_capmask2(9)ib_response_mad(9)ib_get_rmpp_resptime(9)ib_get_rmpp_flags(9)ib_set_rmpp_resptime(9)ib_set_rmpp_flags(9)ib_unregister_mad_agent(9)ib_post_send_mad(9)ib_free_recv_mad(9)ib_modify_mad(9)ib_cancel_mad(9)ib_create_send_mad(9)ib_is_mad_class_rmpp(9)ib_get_mad_data_offset(9)ib_get_rmpp_segment(9)ib_free_send_mad(9)ib_mad_kernel_rmpp_agent(9)
okay bye bestie β source/version: ./include/rdma; date: October 2026; page: ib_register_mad_agent(9). Stay iconic ππ«Άβ¨
π¦ 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