---
name: "rdma_destroy_event_channel"
section: "3"
platform: "freebsd"
package: "base"
version: "16.0-CURRENT-20261027-61c70dc16a79"
release: "FreeBSD 16.0-CURRENT (2026-10-27)"
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

Returns 0 on success, or -1 on error.  If an error occurs, errno will be set to indicate the failure reason.

## 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)
