rpma_conn_get_compl_fd(3)
π rpma_conn_get_compl_fd π
okay so bestie, welcome to the RPMA Programmer's Manual β this is a (3) library page and we're gonna talk about getting a file descriptor, no big deal, but actually kind of a big deal π
β¨ NAME β¨
rpma_conn_get_compl_fd β grab yourself a file descriptor of the shared completion channel of the connection π¦
β¨ SYNOPSIS β¨
like, here's the whole vibe, copy it exactly bestie:
#include <librpma.h>
struct rpma_conn;
int fd;
int rpma_conn_get_compl_fd(const struct rpma_conn *conn, int *fd);
β¨ DESCRIPTION β¨
so rpma_conn_get_compl_fd() does exactly one thing and it does it flawlessly π
it gets a file descriptor of the shared completion channel from the connection. that's it. that's the whole function. no cap. iconic behaviour honestly π
β¨ RETURN VALUE β¨
rpma_conn_get_compl_fd() returns 0 on success, or a negative error code on failure π
π¨ IMPORTANT SIS: on failure,rpma_conn_get_compl_fd()does not set the*fdvalue. so don't go readingfdand assuming it's real, because it is NOT, and that's on periodt. π
β¨ ERRORS β¨
here's the lil list of ways this can go wrong, rpma_conn_get_compl_fd() can fail with these:
RPMA_E_INVALβconnorfdisNULLπ (yeah, you passed a NULL, we've all been there)RPMA_E_NOT_SHARED_CHNLβ the completion event channel is not shared π the vibe check failed, it's giving not-shared energy
β¨ SEE ALSO β¨
go read these next bestie, they're lowkey essential:
librpma(7)rpma_conn_req_connect(3)- and the site:
https://pmem.io/rpma/π
mwah π that's the whole page. it's from the RPMA crew, dated 01 April 2024 β go forth and get those completion fds, you absolute main character π«Άβ¨
π¦ where this page comes from
- ubuntu noble: librpma-dev 1.3.0-2build2 Β· BSD-3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms