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

# nvme\_mi\_ctrl\_id(2)

get the ID of a controller

## NAME

nvme\_mi\_ctrl\_id - get the ID of a controller

## SYNOPSIS

**\_\_u16 nvme\_mi\_ctrl\_id** **(nvme\_mi\_ctrl\_t ctrl** *);*

## ARGUMENTS

- ctrl

  controller to query

## DESCRIPTION

Retrieve the ID of the controller, as defined by hardware, and available in the Identify (Controller List) data. This is the value passed to *nvme\_mi\_init\_ctrl*, but may have been created internally via *nvme\_mi\_scan\_ep*.

## RETURN

the (locally-stored) ID of this controller.
