rdma_init_qp_attr(3)

rdma_init_qp_attr3

Returns qp attributes of an rdma_cm_id.

Usage

#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);

Overview

rdma_init_qp_attr() returns qp attributes of an rdma_cm_id.

Information about qp attributes and qp attributes mask is returned through the qp_attr and qp_attr_mask parameters.

For details on the qp_attr structure, see ibv_modify_qp.

Arguments

id

RDMA identifier.

qp_attr

A reference to a qp attributes struct containing response information.

qp_attr_mask

A reference to a qp attributes mask containing response information.

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.

Releases

4 releases since Debian 11 (Bullseye); the text changed 3 times.

  1. 11
  2. 12
  3. 13
  4. Arch

Author

Danit Goldberg ⟨[email protected]⟩\c

From rdma-core 65.0-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.