DOKK / manpages / debian 12 / libnvme-dev / nvme_mi_mi_read_mi_data_ctrl_list.2.en
nvme_mi_mi_read_mi_data_ctrl_list(2) libnvme API manual nvme_mi_mi_read_mi_data_ctrl_list(2)

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

int nvme_mi_mi_read_mi_data_ctrl_list (nvme_mi_ep_t ep , __u8 start_ctrlid , struct nvme_ctrl_list *list );

endpoint for MI communication
starting controller ID
controller list to populate

Retrieves the list of attached controllers, with IDs greater than or equal to start_ctrlid.

See struct nvme_ctrl_list.

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

nvme_mi_mi_read_mi_data_ctrl_list January 2023