Debian Codegraph @

doc/man/nvme_identify_ns.2

raw
1 .TH "nvme_identify_ns" 9 "nvme_identify_ns" "November 2025" "libnvme API manual" LINUX
2 .SH NAME
3 nvme_identify_ns \- Retrieves nvme identify namespace
4 .SH SYNOPSIS
5 .B "int" nvme_identify_ns
6 .BI "(int fd " ","
7 .BI "__u32 nsid " ","
8 .BI "struct nvme_id_ns *ns " ");"
9 .SH ARGUMENTS
10 .IP "fd" 12
11 File descriptor of nvme device
12 .IP "nsid" 12
13 Namespace to identify
14 .IP "ns" 12
15 User space destination address to transfer the data
16 .SH "DESCRIPTION"
17 If the Namespace Identifier (NSID) field specifies an active NSID, then the
18 Identify Namespace data structure is returned to the host for that specified
19 namespace.
20
21 If the controller supports the Namespace Management capability and the NSID
22 field is set to NVME_NSID_ALL, then the controller returns an Identify Namespace
23 data structure that specifies capabilities that are common across namespaces
24 for this controller.
25
26 See \fIstruct nvme_id_ns\fP for details on the structure returned.
27 .SH "RETURN"
28 The nvme command status if a response was received (see
29 \fIenum nvme_status_field\fP) or -1 with errno set otherwise.