---
name: "nvme_get_subsys_attr"
section: "2"
platform: "linux"
package: "libnvme-dev"
version: "1.13-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/nvme_get_subsys_attr"
---

# nvme\_get\_subsys\_attr(2)

Read subsystem sysfs attribute

## NAME

nvme\_get\_subsys\_attr - Read subsystem sysfs attribute

## SYNOPSIS

**char \* nvme\_get\_subsys\_attr** **(nvme\_subsystem\_t s** *,* **const char \*attr** *);*

## ARGUMENTS

- s

  nvme\_subsystem\_t object

- attr

  sysfs attribute name

## RETURN

String with the contents of *attr* or NULL in case of an empty value or in case of an error (indicated by non-zero errno code).
