rdma_disconnect(3)

rdma_disconnect3

This function disconnects a connection.

Usage

#include <rdma/rdma_cma.h>

int rdma_disconnect (struct rdma_cm_id *id);

Arguments

id

RDMA identifier.

Overview

Disconnects a connection and transitions any associated QP to the error state, which will flush any posted work requests to the completion queue. This routine should be called by both the client and server side of a connection. After successfully disconnecting, an RDMA_CM_EVENT_DISCONNECTED event will be generated on both sides of the connection.

Return value

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

Releases

10 releases since Debian 5.0 (Lenny); the text changed 3 times.

  1. 5.0–6.0
  2. 7
  3. 8–9
  4. 10–Arch

From rdma-core 65.0-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.