---
name: "rpma_conn_get_event_fd"
section: "3"
platform: "linux"
package: "librpma-dev"
version: "1.3.0-2+b3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/rpma_conn_get_event_fd"
---

# rpma\_conn\_get\_event\_fd(3)

get an event file descriptor of the connection

## NAME

**rpma\_conn\_get\_event\_fd** - get an event file descriptor of the connection

## SYNOPSIS

```
      #include <librpma.h>
      struct rpma_conn;
      int rpma_conn_get_event_fd(const struct rpma_conn *conn, int *fd);
```

## DESCRIPTION

**rpma\_conn\_get\_event\_fd**() gets an event file descriptor of the connection.

## RETURN VALUE

The **rpma\_conn\_get\_event\_fd**() function returns 0 on success or a negative error code on failure. **rpma\_conn\_get\_event\_fd**() does not set \*fd value on failure.

## ERRORS

**rpma\_conn\_get\_event\_fd**() can fail with the following error:

- •

  RPMA\_E\_INVAL - conn or fd is NULL

## SEE ALSO

[**rpma\_conn\_next\_event**(3)](/rpma_conn_next_event/3.md), [**rpma\_conn\_req\_connect**(3)](/rpma_conn_req_connect/3.md), [**librpma**(7)](/librpma/7.md) and https://pmem.io/rpma/
