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

# nvme\_mi\_mi\_read\_mi\_data\_ctrl\_list(2)

Perform a Read MI Data Structure command, retrieving the list of attached controllers.

## NAME

nvme\_mi\_mi\_read\_mi\_data\_ctrl\_list - Perform a Read MI Data Structure command, retrieving the list of attached controllers.

## SYNOPSIS

**int nvme\_mi\_mi\_read\_mi\_data\_ctrl\_list** **(nvme\_mi\_ep\_t ep** *,* **\_\_u8 start\_ctrlid** *,* **struct nvme\_ctrl\_list \*list** *);*

## ARGUMENTS

- ep

  endpoint for MI communication

- start\_ctrlid

  starting controller ID

- list

  controller list to populate

## DESCRIPTION

Retrieves the list of attached controllers, with IDs greater than or equal to *start\_ctrlid*.

See *struct nvme\_ctrl\_list*.

## RETURN

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