---
name: "rdma_ack_cm_event"
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_ack_cm_event"
---

# rdma\_ack\_cm\_event(3)

Free a communication event.

## NAME

rdma\_ack\_cm\_event - Free a communication event.

## SYNOPSIS

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

**int rdma\_ack\_cm\_event** **(struct rdma\_cm\_event \****event***);**

## ARGUMENTS

- event

  Event to be released.

## DESCRIPTION

All events which are allocated by rdma\_get\_cm\_event must be released, there should be a one-to-one correspondence between successful gets and acks.  This call frees the event structure and any memory that it references.

## RETURN VALUE

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

## SEE ALSO

[rdma\_get\_cm\_event(3)](/rdma_get_cm_event/3.md), [rdma\_destroy\_id(3)](/rdma_destroy_id/3.md)
