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

# umad\_get\_fd(3)

get the umad fd for the requested port

## NAME

umad\_get\_fd - get the umad fd for the requested port

## SYNOPSIS

```
#include <infiniband/umad.h>

int umad_get_fd(int portid);
```

## DESCRIPTION

**umad\_get\_fd()** returns the umad fd for the port specified by *portid.*

## RETURN VALUE

**umad\_get\_fd()** returns the fd for the *portid* requested or -EINVAL if *portid* is invalid.

## AUTHOR

- Hal Rosenstock \<halr@voltaire.com\>
