rpma_ep_get_fd(3)

πŸ“¦
version 1.3.0 Β· 3 versions
, in ubuntu noble

✨ 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 *fd value. 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 β€” ep or fd is NULL πŸ™ˆ

🌈 SEE ALSO 🌈


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