srpt_ch_qp_rtr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… srpt_ch_qp_rtr(9) πŸ’…

okay bestie, you're in the Kernel API Manual, and this is the page for srpt_ch_qp_rtr(9) β€” the one that changes a channel's state to 'ready to receive' (RTR). it's giving "glow-up era" for a channel, fr fr. ✨


🌸 NAME 🌸

srpt_ch_qp_rtr β€” change the state of a channel to 'ready to receive' (RTR).


✨ SYNOPSIS ✨

int srpt_ch_qp_rtr (struct srpt_rdma_ch *ch , struct ib_qp *qp );

πŸ’– ARGUMENTS πŸ’–

  • ch β€” channel of the queue pair. that's the channel bestie.
  • qp β€” queue pair to change the state of. yes, this is the queue pair getting the little state-change moment.

πŸ¦‹ DESCRIPTION πŸ¦‹

Returns 0 upon success and a negative value upon failure. so like: zero = slay, negative = not slay, no cap. πŸ’…


πŸŽ€ NOTE πŸŽ€

currently a struct ib_qp_attr takes 136 bytes on a 64-bit system. if this structure ever becomes larger, it might be necessary to allocate it dynamically instead of on the stack. 🫢 keep an eye on that, bestie β€” stack space is not infinite, and this is a real "watch this space" situation.


πŸ’… SEE ALSO πŸ’…

Kernel file ./drivers/infiniband/ulp/srpt/ib_srpt.c β€” go peek, iykyk.

also the whole squad: 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_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_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).


πŸ’– mwah, this page came from ./drivers/infiniband/ulp/srpt and it's dated October 2026 β€” bye bestie, go change that state! πŸ’–

πŸ“¦ where this page comes from