---
name: "rdma_resolve_route"
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_resolve_route"
---

# rdma\_resolve\_route(3)

Resolve the route information needed to establish a connection.

## NAME

rdma\_resolve\_route - Resolve the route information needed to establish a connection.

## SYNOPSIS

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

**int rdma\_resolve\_route** **(struct rdma\_cm\_id \****id***,** **int** *timeout\_ms***);**

## ARGUMENTS

- id

  RDMA identifier.

- timeout\_ms

  Time to wait for resolution to complete.

## DESCRIPTION

Resolves an RDMA route to the destination address in order to establish a connection.  The destination address must have already been resolved by calling rdma\_resolve\_addr.

## RETURN VALUE

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

## NOTES

This is called on the client side of a connection after calling rdma\_resolve\_addr, but before calling rdma\_connect.

## INFINIBAND SPECIFIC

This call obtains a path record that is used by the connection.

## SEE ALSO

[rdma\_resolve\_addr(3)](/rdma_resolve_addr/3.md), [rdma\_connect(3)](/rdma_connect/3.md), [rdma\_get\_cm\_event(3)](/rdma_get_cm_event/3.md)
