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

# nvme\_identify\_primary\_ctrl(2)

Retrieve NVMe Primary Controller identification

## NAME

nvme\_identify\_primary\_ctrl - Retrieve NVMe Primary Controller identification

## SYNOPSIS

**int nvme\_identify\_primary\_ctrl** **(int fd** *,* **\_\_u16 cntid** *,* **struct nvme\_primary\_ctrl\_cap \*cap** *);*

## ARGUMENTS

- fd

  File descriptor of nvme device

- cntid

  Return controllers starting at this identifier

- cap

  User space destination buffer address to transfer the data

## DESCRIPTION

See *struct nvme\_primary\_ctrl\_cap* for the definition of the returned structure, *cap*.

## RETURN

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