umad_open_port(3)

umad_open_port3

Open infiniband device port for umad access

Usage

#include <infiniband/umad.h>

int umad_open_port(char *ca_name, int portnum);

Overview

umad_open_port() opens the port portnum of the IB device ca_name for umad access. The port is selected by the library if not all parameters are provided (see umad_get_port() for details).

Return value

umad_open_port() returns 0 or an unique positive value of umad device descriptor on success, and a negative value on error as follows:
-EOPNOTSUPP ABI version doesn't match
-ENODEV IB device can't be resolved
-EINVAL port is not valid (bad portnum or no umad device)
-EIO umad device for this port can't be opened

Releases

9 releases since Debian 6.0 (Squeeze); the text changed 2 times.

  1. 6.0–9
  2. 10
  3. 11–Arch

Author

Hal Rosenstock <[email protected]>

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