---
name: "nvme_mi_mi_read_mi_data_port"
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_port"
---

# nvme\_mi\_mi\_read\_mi\_data\_port(2)

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

## NAME

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

## SYNOPSIS

**int nvme\_mi\_mi\_read\_mi\_data\_port** **(nvme\_mi\_ep\_t 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 *nvme\_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 -1 with errno set otherwise..
