rvt_init_qp(9)
π
rvt_init_qp (9) β like, the kernel API manual, bestie π
okay so we're in the Kernel API Manual today and the star of the show is rvt_init_qp β no cap, she's a little function with one job and she does it flawlessly. β¨
πΈ NAME πΈ
rvt_init_qp β initialize the QP state to the reset state π
like literally just... reset vibes only. that's the whole personality.
π¦ SYNOPSIS π¦
void rvt_init_qp (struct rvt_dev_info *rdi , struct rvt_qp *qp , enum
ib_qp_type type );
she takes three things and returns nothing (void, iconic, unbothered). π
π ARGUMENTS π
rdiβ the rvt dev struct π your home base, your main character's addressqpβ the QP to init or reinit π yes bestie, she does both, she contains multitudestypeβ the QP type π·οΈ tell her what kind of QP she's dealing with
β¨ DESCRIPTION β¨
so here's the tea β β this function gets called from two places: rvt_create_qp and rvt_reset_qp. same girl, two entrances, both slaying.
the difference between them? the reset path grabs the necessary locks to protect against concurrent access ππ€ like, when there's stuff happening at the same time from multiple directions, the reset path is the one holding the door. safety first, always. π«Ά
π SEE ALSO π
the kernel file lives at ./drivers/infiniband/sw/rdmavt/qp.c π and honestly? she has a huge friend group. roll call, everyone say hi π:
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_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_query_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)
forty-two entries, and she knows every single one by name. iykyk ππ
π real talk though: the count is a lot, but they're all literally right there in the list above. no skipping, no summarizing. we don't do that here. π«‘
and that's the whole page, bestie! π this one's brought to you by the fine folks over at ./drivers/infiniband/sw/rdmavt π§ and it's dated October 2026 β mark your calendars, take a screenshot, frame it, whatever you gotta do. mwah πβ¨π
π¦ 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