#include <rdma/rdma_cma.h> int rdma_create_qp(struct rdma_cm_id *id, struct ibv_pd *pd, struct ibv_qp_init_attr *qp_init_attr); 描述 rdma_create_qp 函数分配与指定 rdma_cm_id 标识相关联的队列对 (QP) ,并将其转换为发送和接收。 注意: 在运行 rdma_create_qp 函数之前, rdma_cm_id...
ibv_create_qp()creates a queue pair (QP) associated with the protection domainpd. The argumentqp_init_attris an ibv_qp_init_attr struct, as defined in <rdma/verbs.h>. struct ibv_qp_init_attr { void *qp_context; /*Associated context of the QP*/ struct ibv_cq *send_cq; /*CQ to...