irdma_uk_ato...compare_swap(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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, a bool that 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 ✨

like, read them all, they're all giving kernel API excellence πŸ’œ


ngl, if you're here you're probably already in the irdma source. drink some water, check your post_sq flag, 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