---
name: "nvme_get_path_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_path_attr"
---

# nvme\_get\_path\_attr(2)

Read path sysfs attribute

## NAME

nvme\_get\_path\_attr - Read path sysfs attribute

## SYNOPSIS

**char \* nvme\_get\_path\_attr** **(nvme\_path\_t p** *,* **const char \*attr** *);*

## ARGUMENTS

- p

  nvme\_path\_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).
