libnvme_mi_mi_read_mi_data_ctrl-libnvme32
Perform a read mi data structure command, retrieving controller information
Usage
int libnvme_mi_mi_read_mi_data_ctrl (struct libnvme_mi_ep *ep , __u16 ctrl_id , struct nvme_mi_read_ctrl_info *ctrl );
Arguments
ep
|
endpoint for MI communication |
|---|---|
ctrl_id
|
ID of controller to query |
ctrl
|
controller data to populate |
Overview
Retrieves the Controller Information Data Structure for the attached controller with ID ctrlid.
See struct nvme_mi_read_ctrl_info.
Return
The nvme command status if a response was received (see enum nvme_status_field) or negative error code otherwise.