irdma_fragcnt_to_wqesize_rq(9)
π irdma_fragcnt_to_wqesize_rq(9) π
okay so bestie, welcome to the Kernel API Manual β this one's a little function called irdma_fragcnt_to_wqesize_rq and honestly? It's giving "small but crucial." It just crunches a number for you, no drama. β¨
πΈ NAME πΈ
irdma_fragcnt_to_wqesize_rq β the girlies who calculate the wqe size based on the fragment count for an RQ. That's it, that's the job, and she does it well. π
π¦ SYNOPSIS π¦
int irdma_fragcnt_to_wqesize_rq (u32 frag_cnt , u16 *wqe_size );
Like, returns an int, takes a u32 and a u16 pointer, and handles its business. Periodt. π
π ARGUMENTS π
frag_cntβ the number of fragments, aka how many little pieces you're working with. This is the input, the moment, the main character. β¨wqe_sizeβ the size in bytes givenfrag_cnt. She's the output, she gets filled in based on what you handed over. π«Ά
π SEE ALSO π
okay so this is the part where the whole friend group shows up, and honestly we stan a connected ecosystem. The kernel file lives at ./drivers/infiniband/hw/irdma/uk.c, and while you're in there, the vibes also include:
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_calc_depth_shift_rq(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)
forty whole besties. no cap, that's a group chat and a half. ππ
and that's the whole page, bestie β go forth and frag count responsibly π§ββοΈ
this lil love letter to the manual came from./drivers/infiniband/hw/irdma, datedOctober 2026, and yes the page is literally titledirdma_fragcnt_to_wqesize_rq(9)β iykyk. 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