---
name: "libnvme_get_path_attr-libnvme3"
section: "2"
platform: "linux"
package: "nvme-cli"
version: "3.2-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/libnvme_get_path_attr-libnvme3"
---

# libnvme\_get\_path\_attr-libnvme3(2)

Read path sysfs attribute

## NAME

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

## SYNOPSIS

**char \* libnvme\_get\_path\_attr** **(struct libnvme\_path \*p** *,* **const char \*attr** *);*

## ARGUMENTS

- p

  struct libnvme\_path object

- attr

  sysfs attribute name

## RETURN

A newly allocated string with the contents of *attr* (the caller frees), or NULL in case of an empty value or error.
