libnvme_get_attr(9) libnvme API manual libnvme_get_attr(9)

libnvme_get_attr - Read sysfs attribute

char * libnvme_get_attr (const char *d , const char *attr );

sysfs directory
sysfs attribute name

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

libnvme_get_attr September 2026