| 1 |
.TH "nvme_identify_ns_descs" 9 "nvme_identify_ns_descs" "November 2025" "libnvme API manual" LINUX |
| 2 |
.SH NAME |
| 3 |
nvme_identify_ns_descs \- Retrieves namespace descriptor list |
| 4 |
.SH SYNOPSIS |
| 5 |
.B "int" nvme_identify_ns_descs |
| 6 |
.BI "(int fd " "," |
| 7 |
.BI "__u32 nsid " "," |
| 8 |
.BI "struct nvme_ns_id_desc *descs " ");" |
| 9 |
.SH ARGUMENTS |
| 10 |
.IP "fd" 12 |
| 11 |
File descriptor of nvme device |
| 12 |
.IP "nsid" 12 |
| 13 |
The namespace id to retrieve descriptors |
| 14 |
.IP "descs" 12 |
| 15 |
User space destination address to transfer the data |
| 16 |
.SH "DESCRIPTION" |
| 17 |
A list of Namespace Identification Descriptor structures is returned to the |
| 18 |
host for the namespace specified in the Namespace Identifier (NSID) field if |
| 19 |
it is an active NSID. |
| 20 |
|
| 21 |
The data returned is in the form of an array of 'struct nvme_ns_id_desc'. |
| 22 |
|
| 23 |
See \fIstruct nvme_ns_id_desc\fP for the definition of the returned structure. |
| 24 |
.SH "RETURN" |
| 25 |
The nvme command status if a response was received (see |
| 26 |
\fIenum nvme_status_field\fP) or -1 with errno set otherwise. |