---
name: "libnvme_mi_mi_read_mi_data_port-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_mi_read_mi_data_port-libnvme3"
---

# libnvme\_mi\_mi\_read\_mi\_data\_port-libnvme3(2)

Perform a Read MI Data Structure command, retrieving port data.

## NAME

libnvme\_mi\_mi\_read\_mi\_data\_port - Perform a Read MI Data Structure command, retrieving port data.

## SYNOPSIS

**int libnvme\_mi\_mi\_read\_mi\_data\_port** **(struct libnvme\_mi\_ep \*ep** *,* **\_\_u8 portid** *,* **struct nvme\_mi\_read\_port\_info \*p** *);*

## ARGUMENTS

- ep

  endpoint for MI communication

- portid

  id of port data to retrieve

- p

  port information to populate

## DESCRIPTION

Retrieves the Port information, for the specified port ID. The subsystem data (from *libnvme\_mi\_mi\_read\_mi\_data\_subsys*) nmp field contains the allowed range of port IDs.

See *struct nvme\_mi\_read\_port\_info*.

## RETURN

The nvme command status if a response was received (see *enum nvme\_status\_field*) or negative error code otherwise.
