---
name: "umad_get_pkey"
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_pkey"
---

# umad\_get\_pkey(3)

get pkey index from umad buffer

## NAME

umad\_get\_pkey - get pkey index from umad buffer

## SYNOPSIS

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

int umad_get_pkey(void *umad);
```

## DESCRIPTION

**umad\_get\_pkey()** gets the pkey index from the specified *umad* buffer.

## RETURN VALUE

**umad\_get\_pkey()** returns value of pkey index (or zero if pkey index is not supported by user\_mad interface).

## AUTHOR

- Sasha Khapyorsky \<sashak@voltaire.com\>
