alloc_qpn(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

okay bestie, this is alloc_qpn(9) from the Kernel API Manual β€” yes, we're in the kernel API manual, and this little function is here to allocate the next available qpn, or zero/one for QP type IB_QPT_SMI/IB_QPT_GSI. that's the whole main-character job ✨

✨ SYNOPSIS ✨

int alloc_qpn (struct rvt_dev_info *rdi , struct rvt_qpn_table *qpt ,
       enum ib_qp_type type , u8 port_num , u8 exclude_prefix );

🫢 ARGUMENTS 🫢

  • rdi β€” the rvt device info structure. πŸ’–
  • qpt β€” pointer to the queue pair number table. πŸŽ€
  • type β€” the QP type. πŸ¦‹
  • port_num β€” IB port number, 1 based, comes from core. 🌸
  • exclude_prefix β€” prefix of special queue pair number being allocated. πŸ’…

πŸ’« RETURN πŸ’«

The queue pair number. that's the return value, bestie β€” that's the whole vibe. πŸ‘‘

πŸ”— SEE ALSO πŸ”—

The kernel file is ./drivers/infiniband/sw/rdmavt/qp.c β€” yes, that exact path, no cap. 🫢

Here's the full see-also squad:

shoutout to the ./drivers/infiniband/sw/rdmavt source and the October 2026 date on this alloc_qpn(9) page β€” mwah, bestie πŸ’–

πŸ“¦ where this page comes from