---
name: "nvme_init_identify-libnvme3"
section: "2"
platform: "linux"
package: "nvme-cli"
version: "3.2-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/nvme_init_identify-libnvme3"
---

# nvme\_init\_identify-libnvme3(2)

Initialize passthru command for NVMe Identify

## NAME

nvme\_init\_identify - Initialize passthru command for NVMe Identify

## SYNOPSIS

**void nvme\_init\_identify** **(struct libnvme\_passthru\_cmd \*cmd** *,* **\_\_u32 nsid** *,* **enum nvme\_csi csi** *,* **enum nvme\_identify\_cns cns** *,* **void \*data** *,* **\_\_u32 len** *);*

## ARGUMENTS

- cmd

  Command data structure to initialize

- nsid

  Namespace identifier

- csi

  Command Set Identifier

- cns

  The Controller or Namespace structure, see *enum* nvme\_identify\_cns

- data

  User space destination address to transfer the data

- len

  Length of provided user buffer to hold the data in bytes

## DESCRIPTION

Prepare the *cmd* data structure for the NVMe Identify command.
