---
name: "umad_get_mad"
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_mad"
---

# umad\_get\_mad(3)

get the MAD pointer of a umad buffer

## NAME

umad\_get\_mad - get the MAD pointer of a umad buffer

## SYNOPSIS

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

void * umad_get_mad(void *umad);
```

## DESCRIPTION

**umad\_get\_mad()** returns a pointer to the MAD contained within the *umad* buffer.

## RETURN VALUE

**umad\_get\_mad()** returns a pointer to the MAD contained within the supplied *umad* buffer.

## AUTHOR

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