DOKK / manpages / debian 12 / libnvme-dev / nvme_identify_allocated_ns_list.2.en
nvme_identify_allocated_ns_list(2) libnvme API manual nvme_identify_allocated_ns_list(2)

nvme_identify_allocated_ns_list - Retrieves allocated namespace id list

int nvme_identify_allocated_ns_list (int fd , __u32 nsid , struct nvme_ns_list *list );

File descriptor of nvme device
Return namespaces greater than this identifier
User space destination address to transfer the data

A list of 1024 namespace IDs is returned to the host containing NSIDs in increasing order that are greater than the value specified in the Namespace Identifier (nsid) field of the command.

See struct nvme_ns_list for the definition of the returned structure.

The nvme command status if a response was received (see enum nvme_status_field) or -1 with errno set otherwise.

nvme_identify_allocated_ns_list January 2023