rpma_ep_get_fd(3)
β¨ rpma_ep_get_fd(3) β¨
okay so bestie, welcome to the RPMA Programmer's Manual π you're literally about to learn how to grab a file descriptor off an endpoint and honestly? it's giving main character energy π¦
πΈ NAME πΈ
rpma_ep_get_fd β get a file descriptor of the endpoint π
π SYNOPSIS π
#include <librpma.h>
struct rpma_ep;
int rpma_ep_get_fd(const struct rpma_ep *ep, int *fd);
π DESCRIPTION π
so like, rpma_ep_get_fd() gets the file descriptor of the endpoint. that's it, that's the whole vibe π«Ά you hand it an ep, it fills in your fd, and you move on with your iconic little life β¨
β RETURN VALUE β
rpma_ep_get_fd() returns 0 on success, or a negative error code on failure π
and no cap: on failure,rpma_ep_get_fd()does not set the*fdvalue. don't be out here reading it like it's valid, bestie π
π₯ ERRORS π₯
rpma_ep_get_fd() can fail with the following error:
RPMA_E_INVALβeporfdisNULLπ
π SEE ALSO π
rpma_ep_listen(3)librpma(7)- <https://pmem.io/rpma/> β wait no, not a link, just the URL, keep it plain:
https://pmem.io/rpma/
that's the whole page, you ate that fr fr π
this was the RPMA manual, dated 01 April 2024, brought to you by the RPMA crew π go be great, bestie, and go get that file descriptor β¨
π¦ 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