summaryrefslogtreecommitdiffstats
path: root/doc/man/nvme_get_attr.2
blob: c3eeb9a5f7846ca05e9bb998bdc00b4f63f4b049 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
.TH "nvme_get_attr" 9 "nvme_get_attr" "May 2024" "libnvme API manual" LINUX
.SH NAME
nvme_get_attr \- Read sysfs attribute
.SH SYNOPSIS
.B "char *" nvme_get_attr
.BI "(const char *d "  ","
.BI "const char *attr "  ");"
.SH ARGUMENTS
.IP "d" 12
sysfs directory
.IP "attr" 12
sysfs attribute name
.SH "RETURN"
String with the contents of \fIattr\fP or NULL in case of an empty value
or in case of an error (indicated by non-zero errno code).