irdma_uk_cal...pth_shift_rq(9)
π irdma_uk_calc_depth_shift_rq β a Kernel API Manual moment π
okay so bestie, welcome to the Kernel API Manual β¨ this page is called irdma_uk_cal...pth_shift_rq(9) (the abbreviated header, she's shy), but her full government name is irdma_uk_calc_depth_shift_rq and honestly she's iconic for it.
πΈ NAME πΈ
irdma_uk_calc_depth_shift_rq β literally here to calculate the depth and the shift for the RQ size. that's it. that's her whole job. lowkey queen behavior π
β¨ SYNOPSIS β¨
int irdma_uk_calc_depth_shift_rq (struct irdma_qp_uk_init_info *ukinfo ,
u32 *rq_depth , u8 *rq_shift );
the way she takes three arguments and returns an intβ¦ fr fr, no notes π
π¦ ARGUMENTS π¦
ukinfoβ the qp initialization info, aka the lore drop. this is where the setup tea lives πrq_depthβ returns the depth of the RQ. yes bestie, it returns it β you're passing in au32 *and she's gonna fill it in for you π«Άrq_shiftβ returns the shift of the RQ. same situation,u8 *, she writes it, you read it πΈ
no cap: all three are pointers to stuff she reads or fills, so don't come at her with uninitialized nonsense π
π₯ SEE ALSO π₯
like, she does not exist in a vacuum, she has a whole friend group β all of them live in the kernel file ./drivers/infiniband/hw/irdma/uk.c and you already know they all have their own (9) main character energy:
irdma_set_fragment(9)irdma_set_fragment_gen_1(9)irdma_nop_1(9)irdma_clr_wqes(9)irdma_uk_qp_post_wr(9)irdma_qp_get_next_send_wqe(9)irdma_qp_get_next_recv_wqe(9)irdma_uk_rdma_write(9)irdma_uk_atomic_fetch_add(9)irdma_uk_atomic_compare_swap(9)irdma_uk_srq_post_receive(9)irdma_uk_rdma_read(9)irdma_uk_send(9)irdma_set_mw_bind_wqe_gen_1(9)irdma_copy_inline_data_gen_1(9)irdma_inline_data_size_to_quanta_gen_1(9)irdma_set_mw_bind_wqe(9)irdma_copy_inline_data(9)irdma_inline_data_size_to_quanta(9)irdma_uk_inline_rdma_write(9)irdma_uk_inline_send(9)irdma_uk_stag_local_invalidate(9)irdma_uk_post_receive(9)irdma_uk_cq_resize(9)irdma_uk_cq_set_resized_cnt(9)irdma_uk_cq_request_notification(9)irdma_uk_cq_empty(9)irdma_uk_cq_poll_cmpl(9)irdma_round_up_wq(9)irdma_get_wqe_shift(9)irdma_setup_connection_wqes(9)irdma_uk_srq_init(9)irdma_uk_calc_shift_wq(9)irdma_uk_calc_depth_shift_sq(9)irdma_uk_qp_init(9)irdma_uk_cq_init(9)irdma_uk_clean_cq(9)irdma_nop(9)irdma_fragcnt_to_quanta_sq(9)irdma_fragcnt_to_wqesize_rq(9)
iykyk π that's forty whole friends and every single one of them is worth a read, periodt.
π sign-off π
this page lives in ./drivers/infiniband/hw/irdma, it's dated October 2026, and yeah, the title got truncated to irdma_uk_cal...pth_shift_rq(9) at the bottom too β she's consistent like that π anyway, go calculate some depth and shift bestie, you got this π§πβ
π¦ 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