.\" Extracted by src2man from /build/rpma-UAXlGU/rpma-1.2.0/src/include/librpma.h .\" Text automatically generated by txt2man .TH rpma_conn_get_compl_fd 3 "10 January 2023" "RPMA" "RPMA Programmer's Manual" .SH NAME \fBrpma_conn_get_compl_fd \fP- get a file descriptor of the shared completion channel of the connection .SH SYNOPSIS .nf .fam C #include struct rpma_conn; int fd; int \fBrpma_conn_get_compl_fd\fP(const struct rpma_conn *conn, int *fd); .fam T .fi .fam T .fi .SH DESCRIPTION \fBrpma_conn_get_compl_fd\fP() gets a file descriptor of the shared completion channel from the connection. .SH RETURN VALUE The \fBrpma_conn_get_compl_fd\fP() function returns 0 on success or a negative error code on failure. \fBrpma_conn_get_compl_fd\fP() does not set *fd value on failure. .SH ERRORS \fBrpma_conn_get_compl_fd\fP() can fail with the following errors: .IP \(bu 3 RPMA_E_INVAL - conn or fd is NULL .IP \(bu 3 RPMA_E_NOT_SHARED_CHNL - the completion event channel is not shared .SH SEE ALSO \fBlibrpma\fP(7), \fBrpma_conn_req_connect\fP(3) and https://pmem.io/rpma/