rvt_query_qp(9)
π« rvt_query_qp(9) π«
okay bestie, welcome to the Kernel API Manual β yes that's the manual name, we're fancy here π . This one's a certified short king of a manpage, but don't let the length fool you, every crumb matters. Let's get into it π«Ά
β¨ NAME β¨
rvt_query_qp β literally just queries an ipbq. that's it. that's the whole vibe check π
πΈ SYNOPSIS πΈ
int rvt_query_qp (struct ib_qp *ibqp , struct ib_qp_attr *attr , int
attr_mask , struct ib_qp_init_attr *init_attr );
look at that signature, it's giving "i have four arguments and i'm not afraid to use them" π₯
π ARGUMENTS π
ibqpβ the IB qp you wanna query, like, the actual star of the show β¨attrβ the attr struct you fill in. you're the one doing the filling, bestie πattr_maskβ the attr mask, which gets ignored. no cap, it's just there vibing πinit_attrβ another struct to fill in. yep, you're filling in two. main character multitasking energy π
π¦ RETURN π¦
always 0. not sometimes, not "depends on the weather" β always. iconic consistency, honestly, we stan a predictable return value π
π SEE ALSO π
so there's a whole friend group here, iykyk. first up: Kernel file ./drivers/infiniband/sw/rdmavt/qp.c, and then the crew:
init_qpn_table(9),free_qpn_table(9),rvt_driver_qp_init(9),rvt_free_qp_cb(9),rvt_free_all_qps(9),rvt_qp_exit(9)alloc_qpn(9),rvt_clear_mr_refs(9),rvt_swqe_has_lkey(9),rvt_qp_sends_has_lkey(9),rvt_qp_acks_has_lkey(9),rvt_qp_mr_clean(9)rvt_remove_qp(9),rvt_alloc_rq(9),rvt_init_qp(9),_rvt_reset_qp(9),rvt_reset_qp(9),rvt_free_qpn(9)get_allowed_ops(9),free_ud_wq_attr(9),alloc_ud_wq_attr(9),rvt_create_qp(9),rvt_error_qp(9),rvt_modify_qp(9),rvt_destroy_qp(9)rvt_post_recv(9),rvt_qp_valid_operation(9),rvt_qp_is_avail(9),rvt_post_one_wr(9),rvt_post_send(9),rvt_post_srq_recv(9)get_rvt_head(9),rvt_get_rwqe(9),rvt_comm_est(9),rvt_add_rnr_timer(9),rvt_stop_rc_timers(9),rvt_stop_rnr_timer(9),rvt_del_timers_sync(9)rvt_qp_iter_init(9),rvt_qp_iter_next(9),rvt_qp_iter(9),rvt_copy_sge(9),rvt_ruc_loopback(9)
that's the whole group chat right there, go say hi π§
lowkey reminder: attr_mask really is ignored. don't come back here asking why your mask did nothing β the page told you first, bestie π
aaand that's a wrap! this little gem lives at ./drivers/infiniband/sw/rdmavt, and it's dated October 2026 β future queen behaviour honestly β slay, go query those qps π
π¦ 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