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

# nvme\_mi\_admin\_identify\_ctrl(2)

Perform an Admin identify for a controller

## NAME

nvme\_mi\_admin\_identify\_ctrl - Perform an Admin identify for a controller

## SYNOPSIS

**int nvme\_mi\_admin\_identify\_ctrl** **(nvme\_mi\_ctrl\_t ctrl** *,* **struct nvme\_id\_ctrl \*id** *);*

## ARGUMENTS

- ctrl

  Controller to process identify command

- id

  Controller identify data to populate

## DESCRIPTION

Perform an Identify command, for the controller specified by *ctrl*, writing identify data to *id*.

Will return an error if the length of the response data (from the controller) is not a full *NVME\_IDENTIFY\_DATA\_SIZE*, so *id* will be fully populated on success.

See: *struct nvme\_id\_ctrl*

## RETURN

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