1nvme_identify_ns(9) libnvme API manual nvme_identify_ns(9)
2
3
4
6 nvme_identify_ns - Retrieves nvme identify namespace
7
9 int nvme_identify_ns (int fd , __u32 nsid , struct nvme_id_ns *ns );
10
12 fd File descriptor of nvme device
13
14 nsid Namespace to identify
15
16 ns User space destination address to transfer the data
17
19 If the Namespace Identifier (NSID) field specifies an active NSID, then
20 the Identify Namespace data structure is returned to the host for that
21 specified namespace.
22
23 If the controller supports the Namespace Management capability and the
24 NSID field is set to NVME_NSID_ALL, then the controller returns an
25 Identify Namespace data structure that specifies capabilities that are
26 common across namespaces for this controller.
27
28 See struct nvme_id_ns for details on the structure returned.
29
31 The nvme command status if a response was received (see enum nvme_sta‐
32 tus_field) or -1 with errno set otherwise.
33
34
35
36April 2022 nvme_identify_ns nvme_identify_ns(9)