Reference

libnvme_get_attr-libnvme3(2)

Read sysfs attribute

NAME

libnvme_get_attr - Read sysfs attribute

SYNOPSIS

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

ARGUMENTS

d

sysfs directory

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.