---
name: "nvme_mi_admin_identify_cns_nsid"
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_cns_nsid"
---

# nvme\_mi\_admin\_identify\_cns\_nsid(2)

Perform an Admin identify command using specific CNS/NSID parameters.

## NAME

nvme\_mi\_admin\_identify\_cns\_nsid - Perform an Admin identify command using specific CNS/NSID parameters.

## SYNOPSIS

**int nvme\_mi\_admin\_identify\_cns\_nsid** **(nvme\_mi\_ctrl\_t ctrl** *,* **enum nvme\_identify\_cns cns** *,* **\_\_u32 nsid** *,* **void \*data** *);*

## ARGUMENTS

- ctrl

  Controller to process identify command

- cns

  Controller or Namespace Structure, specifying identified object

- nsid

  namespace ID

- data

  buffer for identify data response

## DESCRIPTION

Perform an Identify command, using the CNS specifier *cns*, and the namespace ID *nsid* if required by the CNS type.

Stores the identify data in *data*, which is expected to be a buffer of *NVME\_IDENTIFY\_DATA\_SIZE* bytes.

Will return an error if the length of the response data (from the controller) is not a full *NVME\_IDENTIFY\_DATA\_SIZE*.

## RETURN

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