nvme_identify_allocated_ns(2) libnvme API manual nvme_identify_allocated_ns(2)

nvme_identify_allocated_ns - Same as nvme_identify_ns, but only for allocated namespaces

int nvme_identify_allocated_ns (int fd , __u32 nsid , struct nvme_id_ns *ns );

File descriptor of nvme device
Namespace to identify
User space destination address to transfer the data

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

nvme_identify_allocated_ns March 2024