libnvme_mi_mi_read_mi_data_port(9) libnvme API manual libnvme_mi_mi_read_mi_data_port(9)

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

int libnvme_mi_mi_read_mi_data_port (struct libnvme_mi_ep *ep , __u8 portid , struct nvme_mi_read_port_info *p );

endpoint for MI communication
id of port data to retrieve
port information to populate

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.

The nvme command status if a response was received (see enum nvme_status_field) or negative error code otherwise.

libnvme_mi_mi_read_mi_data_port September 2026