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

nvme_mi_admin_identify_ctrl - Perform an Admin identify for a controller

int nvme_mi_admin_identify_ctrl (nvme_mi_ctrl_t ctrl , struct nvme_id_ctrl *id );

Controller to process identify command
Controller identify data to populate

Perform an Identify command, for the controller specified by ctrl, writing identify data to id.

Will return an error if the length of the response data (from the controller) is not a full NVME_IDENTIFY_DATA_SIZE, so id will be fully populated on success.

See: struct nvme_id_ctrl

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

nvme_mi_admin_identify_ctrl January 2023