---
name: "libnvme_mi_ctrl_id-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/libnvme_mi_ctrl_id-libnvme3"
---

# libnvme\_mi\_ctrl\_id-libnvme3(2)

get the ID of a controller

## NAME

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

## SYNOPSIS

**\_\_u16 libnvme\_mi\_ctrl\_id** **(struct libnvme\_transport\_handle \*hdl** *);*

## ARGUMENTS

- hdl

  transport handle to 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 *libnvme\_mi\_init\_transport\_handle*, but may have been created internally via *libnvme\_mi\_scan\_ep*.

## RETURN

the (locally-stored) ID of this controller.
