RDMA_INIT_QP_ATTR(3)

πŸ’… RDMA_INIT_QP_ATTR(3) β€” rdma_init_qp_attr, bestie πŸ’…

okay so welcome to the RDMA_INIT_QP_ATTR(3) page from the Librdmacm Programmer’s Manual ✨ this is your group-chat cheat sheet for rdma_init_qp_attr, and we’re keeping every single fact, no cap.


πŸŽ€ NAME πŸŽ€

rdma_init_qp_attr β€” returns qp attributes of an rdma_cm_id. literally that’s the main-character job πŸ’–

πŸ¦‹ SYNOPSIS πŸ¦‹

              #include <rdma/rdma_cma.h>

              int rdma_init_qp_attr(struct rdma_cm_id *id,
                             struct ibv_qp_attr *qp_attr,
                             int *qp_attr_mask);

🌸 DESCRIPTION 🌸

so rdma_init_qp_attr() returns qp attributes of an rdma_cm_id β€” yes bestie, it’s giving β€œget me the qp attrs” energy πŸ’…

the tea about qp attributes and the qp attributes mask comes back to you through the qp_attr and qp_attr_mask parameters. that’s the whole handoff 🫢

for the full details on the qp_attr structure, go look at ibv_modify_qp β€” that’s where the lore lives, iykyk ⭐

πŸ’œ ARGUMENTS πŸ’œ

  • id β€” the RDMA identifier. like, the main character of this call πŸ‘‘
  • qp_attr β€” a reference to a qp attributes struct containing response information. it’s bringing the response info back to you πŸŽ€
  • qp_attr_mask β€” a reference to a qp attributes mask containing response information. also carrying response info, but make it mask ✨

πŸ”₯ RETURN VALUE πŸ”₯

rdma_init_qp_attr() returns 0 on success, or -1 on error. if an error occurs, errno will be set to indicate the failure reason β€” so you know why, bestie 😭

🌈 SEE ALSO 🌈

πŸ“ AUTHOR πŸ“

Danit Goldberg <danitg@mellanox.com> β€” ty for this iconic contribution πŸ’–


okay that’s the whole page, bestie. this cutie came from librdmacm, dated 2018-12-31, and the manual/title is RDMA_INIT_QP_ATTR(3) β€” slay, periodt πŸ’…βœ¨
πŸ“¦ where this page comes from