.\" Automatically generated by Pandoc 2.2.1 .\" .TH "RDMA_INIT_QP_ATTR" "3" "2018\-12\-31" "librdmacm" "Librdmacm Programmer's Manual" .hy .SH NAME .PP rdma_init_qp_attr \- Returns qp attributes of a rdma_cm_id. .SH SYNOPSIS .IP .nf \f[C] #include\ int\ rdma_init_qp_attr(struct\ rdma_cm_id\ *id, \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ struct\ ibv_qp_attr\ *qp_attr, \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ int\ *qp_attr_mask); \f[] .fi .SH DESCRIPTION .PP \f[B]rdma_init_qp_attr()\f[] returns qp attributes of a rdma_cm_id. .PP Information about qp attributes and qp attributes mask is returned through the \f[I]qp_attr\f[] and \f[I]qp_attr_mask\f[] parameters. .PP For details on the qp_attr structure, see ibv_modify_qp. .SH ARGUMENTS .TP .B \f[I]id\f[] RDMA identifier. .RS .RE .TP .B \f[I]qp_attr\f[] A reference to a qp attributes struct containing response information. .RS .RE .TP .B \f[I]qp_attr_mask\f[] A reference to a qp attributes mask containing response information. .RS .RE .SH RETURN VALUE .PP \f[B]rdma_init_qp_attr()\f[] returns 0 on success, or \-1 on error. If an error occurs, errno will be set to indicate the failure reason. .SH SEE ALSO .PP \f[B]rdma_cm\f[](7), \f[B]ibv_modify_qp\f[](3) .SH AUTHOR .PP Danit Goldberg