---
name: "umad_get_cas_names"
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_cas_names"
---

# umad\_get\_cas\_names(3)

get list of available InfiniBand device names

## NAME

umad\_get\_cas\_names - get list of available InfiniBand device names

## SYNOPSIS

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

int umad_get_cas_names(char cas[][UMAD_CA_NAME_LEN], int max);
```

## DESCRIPTION

**umad\_get\_cas\_names()** fills the *cas* array with up to *max* local IB devices (CAs) names. The argument *cas* is a character array with *max* entries, each with **UMAD\_CA\_NAME\_LEN** characters.

## RETURN VALUE

**umad\_get\_cas\_names()** returns a non-negative value equal to the number of entries filled, or -1 on errors.

## SEE ALSO

[**umad\_get\_ca\_portguids**(3)](/umad_get_ca_portguids/3.md), [**umad\_open\_port**(3)](/umad_open_port/3.md)

## AUTHORS

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

  - Dotan Barak \<dotanb@mellanox.co.il\>
