rvt_lookup_qpn(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– rvt_lookup_qpn(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual, section 9 β€” this is the page for rvt_lookup_qpn, and no cap it's a little one but it's important, so pay attention πŸŽ€


✨ NAME ✨

rvt_lookup_qpn β€” return the QP with the given QPN πŸ¦‹


🌸 SYNOPSIS 🌸

struct rvt_qp * rvt_lookup_qpn (struct rvt_dev_info *rdi , struct
       rvt_ibport *rvp , u32 qpn );

like, it literally hands you back a struct rvt_qp *, periodt πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • rdi β€” the rvt device info structure 🧚
  • rvp β€” the ibport, iykyk
  • qpn β€” the QP number you're trying to look up πŸ”

πŸ’œ DESCRIPTION πŸ’œ

okay so this is the part where you have to be a responsible main character: the caller must hold the rcu_read_lock, and keep holding that lock until the returned qp is no longer in use. like, do not let go early. that's the whole vibe check πŸ˜­πŸ”’

fr fr, the returned qp is only safe while you're still holding the lock β€” release it too soon and you're on your own πŸ™ˆ

🌈 SEE ALSO 🌈

Kernel file ./include/rdma/rdmavt_qp.h πŸ’– and also all of these iconic little friends:


and that's the whole page, bestie 🫢 this cutie lives in the source dir ./include/rdma, dated October 2026, and yes it's still rvt_lookup_qpn(9) β€” slay, go hold that rcu lock πŸ’…βœ¨πŸ“

πŸ“¦ where this page comes from