rvt_qp_is_avail(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

rvt_qp_is_avail(9) 🌸

okay bestie, welcome to the Kernel API Manual page for rvt_qp_is_avail β€” it's literally about determining queue capacity, and we're gonna get into it πŸ’…


πŸŽ€ NAME πŸŽ€

rvt_qp_is_avail β€” determine queue capacity. that's the whole mission, no cap ✨


✨ SYNOPSIS ✨

int rvt_qp_is_avail (struct rvt_qp *qp , struct rvt_dev_info *rdi , bool
reserved_op );

πŸ’… ARGUMENTS πŸ’…

  • qp β€” the qp, obviously 🫢
  • rdi β€” the rdmavt device
  • reserved_op β€” is reserved operation, so it tells you whether this is a reserved op or not

πŸ¦‹ DESCRIPTION πŸ¦‹

Heads up, bestie: this assumes the s_hlock is held, but the s_last qp variable is uncontrolled. that's the setup, okay? 😭

For non reserved operations, the qp->s_avail may be changed. lowkey important.

The return value is zero or a -ENOMEM. that's the whole return vibe, periodt πŸ’€


🌈 SEE ALSO 🌈

Kernel file ./drivers/infiniband/sw/rdmavt/qp.c β€” go read it if you're curious, iykyk πŸ‘‘


and that's the tea β˜• footer vibe: source/version ./drivers/infiniband/sw/rdmavt, dated October 2026, page rvt_qp_is_avail(9). bye bestie πŸ«ΆπŸ’–

πŸ“¦ where this page comes from