---
name: "umad_close_port"
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_close_port"
---

# umad\_close\_port(3)

close InfiniBand device port for umad access

## NAME

umad\_close\_port - close InfiniBand device port for umad access

## SYNOPSIS

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

int umad_close_port(int portid);
```

## DESCRIPTION

**umad\_close\_port()** closes the port specified by the handle *portid.*

## RETURN VALUE

**umad\_close\_port()** returns 0 on success, and a negative value on error. -EINVAL is returned if the *portid* is not a handle to a valid (open) port.

## SEE ALSO

[**umad\_open\_port**(3)](/umad_open_port/3.md)

## AUTHOR

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