libnvme\_mi\_ctrl\_id(9) libnvme API manual libnvme\_mi\_ctrl\_id(9)

# [NAME](#NAME)

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

# [SYNOPSIS](#SYNOPSIS)

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

# [ARGUMENTS](#ARGUMENTS)

[hdl](#hdl)

transport handle to controller to query

# [DESCRIPTION](#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](#RETURN)

the (locally-stored) ID of this controller.

libnvme\_mi\_ctrl\_id September 2026

---

Document: libnvme_mi_ctrl_id-libnvme3(2) from nvme-cli 3.1-r1 (Chainguard OS)
Source: https://github.com/linux-nvme/nvme-cli
