---
name: "rpma_ep_shutdown"
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_ep_shutdown"
---

# rpma\_ep\_shutdown(3)

stop listening and delete the endpoint

## NAME

**rpma\_ep\_shutdown** - stop listening and delete the endpoint

## SYNOPSIS

```
      #include <librpma.h>
      struct rpma_ep;
      int rpma_ep_shutdown(struct rpma_ep **ep_ptr);
```

## DESCRIPTION

**rpma\_ep\_shutdown**() stops listening for incoming connections and deletes the endpoint. The connections established using the endpoint will still exist after deleting the endpoint.

## RETURN VALUE

The **rpma\_ep\_shutdown**() function returns 0 on success or a negative error code on failure. **rpma\_ep\_shutdown**() does not set \*ep\_ptr value to NULL on failure.

## ERRORS

**rpma\_ep\_shutdown**() can fail with the following errors:

- •

  RPMA\_E\_INVAL - ep\_ptr is NULL

- •

  RPMA\_E\_PROVIDER - [**rdma\_destroy\_id**(3)](/rdma_destroy_id/3.md) failed

## SEE ALSO

[**rpma\_ep\_listen**(3)](/rpma_ep_listen/3.md), [**librpma**(7)](/librpma/7.md) and https://pmem.io/rpma/
