srpt_mgmt_method_get(9)
β¨ srpt_mgmt_method_get β a whole kernel API manual moment β¨
Okay bestie, so this is a page from the Kernel API Manual, and it's all about srpt_mgmt_method_get. Yes, that's the whole name, she's long, she's iconic, we respect her π
πΈ NAME πΈ
srpt_mgmt_method_get β process a received management datagram
Like, literally that's the job. A management datagram shows up, and this function deals with it. No cap. π¦
β SYNOPSIS β
void srpt_mgmt_method_get (struct srpt_port *sp , struct ib_mad *rq_mad
, struct ib_dm_mad *rsp_mad );
So it returns void (nothing back, she gives and doesn't take π) and it takes three things: sp, rq_mad, and rsp_mad. Keep those names exactly as-is, they're load-bearing, fr fr.
π ARGUMENTS π
spβ the HCA port through which the MAD has been received. Basically the doorway our little datagram came in through πͺβ¨rq_madβ the received MAD. This is the one that arrived. The request. The main character of this whole situation πrsp_madβ the response MAD. The one going back out. Her job is to be the reply π
π«Ά SEE ALSO π«Ά
First up, the kernel file herself: ./drivers/infiniband/ulp/srpt/ib_srpt.c π
And then, bestie, the friend group. It's a big friend group. Every single one of these is invited to the function party:
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_mad_send_handler(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 I said. Huge friend group. All of them serving looks, all of them worth a read π§π
π the cute lil sign-off π
This whole page lives in ./drivers/infiniband/ulp/srpt, and it's dated October 2026 β yes, October 2026, she's from the future, we don't question it π«
That's the page bestie, go forth and process those management datagrams, periodt π₯π
π¦ 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