---
name: "umad_class_str"
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_class_str"
---

# umad\_class\_str(3)

class of functions to return string representations of enums

## NAME

umad\_\*\_str - class of functions to return string representations of enums

## SYNOPSIS

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

const char * umad_class_str(uint8_t mgmt_class)
const char * umad_method_str(uint8_t mgmt_class, uint8_t method)
const char * umad_attribute_str(uint8_t mgmt_class, be16_t attr_id)
const char * umad_common_mad_status_str(be16_t status)
const char * umad_sa_mad_status_str(be16_t status)
```

## DESCRIPTION

**const char \* umad\_class\_str(uint8\_t mgmt\_class)** Return string value of management class enum

**const char \* umad\_method\_str(uint8\_t mgmt\_class, uint8\_t method)** Return string value of the method for the mgmt\_class specified

**const char \* umad\_attribute\_str(uint8\_t mgmt\_class, be16\_t attr\_id)** Return string value of attribute specified in attr\_id based on mgmt\_class specified.

**const char \* umad\_common\_mad\_status\_str(be16\_t status)** Return string value for common MAD status values

**const char \* umad\_sa\_mad\_status\_str(be16\_t status)** Return string value for SA MAD status values

**NOTE:** Not all classes are supported.

## RETURN VALUE

Returns a string representations of the fields specified.

## AUTHOR

- Ira Weiny \<weiny2@llnl.gov\>
