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

# rdma\_establish(3)

Complete an active connection request.

## NAME

rdma\_establish - Complete an active connection request.

## SYNOPSIS

-

  ```
  #include <rdma/rdma_cma.h>
  int rdma_establish(struct rdma_cm_id *id);
  ```

## DESCRIPTION

**rdma\_establish()** Acknowledge an incoming connection response event and complete the connection establishment.

Notes:

If a QP has not been created on the rdma\_cm\_id, this function should be called by the active side to complete the connection,

after getting connect response event.

This will trigger a connection established event on the passive side.

This function should not be used on an rdma\_cm\_id on which a QP has been created.

## ARGUMENTS

- *id*

  RDMA identifier.

## RETURN VALUE

**rdma\_establish()** returns 0 on success, or -1 on error. If an error occurs, errno will be set to indicate the failure reason.

## SEE ALSO

[**rdma\_connect**(3)](/rdma_connect/3.md), [**rdma\_disconnect**(3)](/rdma_disconnect/3.md) [**rdma\_get\_cm\_event**(3)](/rdma_get_cm_event/3.md)

## AUTHORS

Danit Goldberg ⟨danitg@mellanox.com⟩\\c

Yossi Itigin ⟨yosefe@mellanox.com⟩\\c
