---
name: "rdma_destroy_event_channel"
section: "3"
platform: "linux"
package: "rdma-core"
version: "65.0-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux", "freebsd"]
url: "https://new.carta.tech/rdma_destroy_event_channel"
---

# rdma\_destroy\_event\_channel(3)

Close an event communication channel.

## NAME

rdma\_destroy\_event\_channel - Close an event communication channel.

## SYNOPSIS

**#include \<rdma/rdma\_cma.h\>**

**void rdma\_destroy\_event\_channel** **(struct rdma\_event\_channel \****channel***);**

## ARGUMENTS

- channel

  The communication channel to destroy.

## DESCRIPTION

Release all resources associated with an event channel and closes the associated file descriptor.

## RETURN VALUE

None

## NOTES

All rdma\_cm\_id's associated with the event channel must be destroyed, and all returned events must be acked before calling this function.

## SEE ALSO

[rdma\_create\_event\_channel(3)](/rdma_create_event_channel/3.md), [rdma\_get\_cm\_event(3)](/rdma_get_cm_event/3.md), [rdma\_ack\_cm\_event(3)](/rdma_ack_cm_event/3.md)
