---
name: "umad_unregister"
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_unregister"
---

# umad\_unregister(3)

unregister umad agent

## NAME

umad\_unregister - unregister umad agent

## SYNOPSIS

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

int umad_unregister(int portid, int agentid);
```

## DESCRIPTION

**umad\_unregister()** unregisters the specified *agentid* previously registered using **umad\_register()** or **umad\_register\_oui().**

## RETURN VALUE

**umad\_unregister()** returns 0 on success and negative value on error as follows:\
  \-EINVAL invalid port handle or agentid\
  \*       (kernel error codes)

## SEE ALSO

[**umad\_register**(3)](/umad_register/3.md), [**umad\_register\_oui**(3)](/umad_register_oui/3.md)

## AUTHOR

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