.\" Automatically generated by Pandoc 3.1.11.1
.\"
.TH "RDMA_INIT_QP_ATTR" "3" "2018\-12\-31" "librdmacm" "Librdmacm Programmer\[cq]s Manual"
.SH NAME
rdma_init_qp_attr \- Returns qp attributes of an rdma_cm_id.
.SH SYNOPSIS
.IP
.EX
#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);
.EE
.SH DESCRIPTION
\f[B]rdma_init_qp_attr()\f[R] returns qp attributes of an rdma_cm_id.
.PP
Information about qp attributes and qp attributes mask is returned
through the \f[I]qp_attr\f[R] and \f[I]qp_attr_mask\f[R] parameters.
.PP
For details on the qp_attr structure, see ibv_modify_qp.
.SH ARGUMENTS
.TP
\f[I]id\f[R]
RDMA identifier.
.TP
\f[I]qp_attr\f[R]
A reference to a qp attributes struct containing response information.
.TP
\f[I]qp_attr_mask\f[R]
A reference to a qp attributes mask containing response information.
.SH RETURN VALUE
\f[B]rdma_init_qp_attr()\f[R] returns 0 on success, or \-1 on error.
If an error occurs, errno will be set to indicate the failure reason.
.SH SEE ALSO
\f[B]rdma_cm\f[R](7), \f[B]ibv_modify_qp\f[R](3)
.SH AUTHOR
Danit Goldberg \c
.MT danitg@mellanox.com
.ME \c
