libnvme_mi_mi_read_mi_data_ctrl(9) libnvme API manual libnvme_mi_mi_read_mi_data_ctrl(9)

libnvme_mi_mi_read_mi_data_ctrl - Perform a Read MI Data Structure command, retrieving controller information

int libnvme_mi_mi_read_mi_data_ctrl (struct libnvme_mi_ep *ep , __u16 ctrl_id , struct nvme_mi_read_ctrl_info *ctrl );

endpoint for MI communication
ID of controller to query
controller data to populate

Retrieves the Controller Information Data Structure for the attached controller with ID ctrlid.

See struct nvme_mi_read_ctrl_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_ctrl September 2026