.\" Automatically generated by Pandoc 2.9.2.1 .\" .TH "RDMA_INIT_QP_ATTR" "3" "2018-12-31" "librdmacm" "Librdmacm Programmer\[cq]s Manual" .hy .SH NAME .PP rdma_init_qp_attr - Returns qp attributes of an 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[R] .fi .SH DESCRIPTION .PP \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 .PP \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 .PP \f[B]rdma_cm\f[R](7), \f[B]ibv_modify_qp\f[R](3) .SH AUTHOR .PP Danit Goldberg