---
name: "umad_init"
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_init"
---

# umad\_init(3)

perform library initialization and finalization

## NAME

umad\_init, umad\_done - perform library initialization and finalization

## SYNOPSIS

-

  ```
  #include <infiniband/umad.h>
  int umad_init(void);
  int umad_done(void);
  ```

## DESCRIPTION

**umad\_init()** and **umad\_done()** do nothing.

## RETURN VALUE

Always 0.

## COMPATIBILITY

Versions prior to release 18 of the library require **umad\_init()** to be called prior to using any other library functions. Old versions could return a failure code of -1 from **umad\_init()**.

For compatibility, applications should continue to call **umad\_init()**, and check the return code, prior to calling other **umad\_** functions. If **umad\_init()** returns an error, then no further use of the umad library should be attempted.

## AUTHORS

Dotan Barak ⟨dotanb@mellanox.co.il⟩\\c , Hal Rosenstock ⟨halr@voltaire.com⟩\\c
