rvt_qp_iter(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… rvt_qp_iter β€” the "iterate all QPs" girlies' era ✨

okay bestie, so we're deep in the kernel API manual (that's the 9 section, iykyk) and today's main character is rvt_qp_iter. no cap, this one's a little baddie for looping over every single QP πŸ’–


🌸 SYNOPSIS 🌸

void rvt_qp_iter (struct rvt_dev_info *rdi , u64 v , void (*cb)(struct
rvt_qp *qp, u64 v) );

literally just look at her. iconic signature, zero notes πŸŽ€


πŸ¦‹ ARGUMENTS πŸ¦‹

  • rdi β€” the rvt devinfo, aka the whole vibe of the device we're cruising through ✨
  • v β€” a 64-bit value. yes, sixty-four whole bits of it πŸ’…
  • cb β€” a callback. you bring your own, we just call it 🫢

πŸ’œ DESCRIPTION πŸ’œ

So this is the way you get to iterate, like, all the QPs. that's the whole plot πŸ“

The cb is a user-defined callback, and v is a 64-bit value that gets passed along and is genuinely relevant for processing inside the cb. an example use case would be altering QP processing based on criteria that aren't part of the rvt_qp β€” so your callback's out here doing her own extra filtering, periodt πŸ”₯

Also! the code has an internal iterator to simplify non seq_file use cases. that's the little helper behind the scenes making your life cute, ngl πŸ’€


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/infiniband/sw/rdmavt/qp.c β€” and honestly, the whole friend group:

link them all, they ate πŸ’…


and that's the page!! 🧚 this little gem lives over in ./drivers/infiniband/sw/rdmavt, the version notes say October 2026, and the manpage name is rvt_qp_iter(9) in case you forgot already 😭 mwah, go iterate some QPs bestie πŸ’–βœ¨

πŸ“¦ where this page comes from