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

nvme_identify_uuid - Retrieves device's UUIDs

int nvme_identify_uuid (int fd , struct nvme_id_uuid_list *uuid_list );

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

Each UUID List entry is either 0h, the NVMe Invalid UUID, or a valid UUID. Valid UUIDs are those which are non-zero and are not the NVMe Invalid UUID.

See struct nvme_id_uuid_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_uuid January 2023