---
name: "nvme_identify_uuid"
section: "2"
platform: "linux"
package: "libnvme-dev"
version: "1.13-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/nvme_identify_uuid"
---

# nvme\_identify\_uuid(2)

Retrieves device's UUIDs

## NAME

nvme\_identify\_uuid - Retrieves device's UUIDs

## SYNOPSIS

**int nvme\_identify\_uuid** **(int fd** *,* **struct nvme\_id\_uuid\_list \*uuid\_list** *);*

## ARGUMENTS

- fd

  File descriptor of nvme device

- uuid\_list

  User space destination address to transfer the data

## DESCRIPTION

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.

## RETURN

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