irdma_uk_ato...compare_swap(9)
π irdma_uk_atomic_compare_swap β the kernel API manual, bestie edition
okay so picture this: you're deep in the irdma driver, right, and you need an atomic compare and swap. That's the whole vibe of this page. It lives in the Kernel API Manual, and honestly? iconic behaviour.
πΈ NAME πΈ
irdma_uk_atomic_compare_swap β it's literally an atomic compare and swap operation. no cap, that's the name, that's the job. π
β¨ SYNOPSIS β¨
int irdma_uk_atomic_compare_swap (struct irdma_qp_uk *qp , struct
irdma_post_sq_info *info , bool post_sq );
that's it, that's the signature. returns an int, takes three things, slays. π«Ά
π ARGUMENTS π
qpβ a hw qp ptr. yes bestie, hardware queue pair pointer, the main character of this whole situation πinfoβ post sq information. all the deets you need for posting to the sq π¦post_sqβ flag to post sq. like, aboolthat says "yeah go ahead and post it" or "nah" π
π₯ SEE ALSO π₯
okay this list is long and I'm obsessed with it. everything here is a (9) kernel API page, and the whole party lives in the kernel file ./drivers/infiniband/hw/irdma/uk.c β¨
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_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)irdma_fragcnt_to_wqesize_rq(9)
like, read them all, they're all giving kernel API excellence π
ngl, if you're here you're probably already in theirdmasource. drink some water, check yourpost_sqflag, and go be a main character in the send queue. ππΈ
and that's the page!! brought to you by ./drivers/infiniband/hw/irdma, dated October 2026, filed under irdma_uk_ato...compare_swap(9). periodt. π§β¨π
π¦ 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