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

nvme_get_log_fw_slot - Retrieves the controller firmware log

int nvme_get_log_fw_slot (int fd , bool rae , struct nvme_firmware_slot *fw_log );

File descriptor of nvme device
Retain asynchronous events
User address to store the log page

This log page describes the firmware revision stored in each firmware slot supported. The firmware revision is indicated as an ASCII string. The log page also indicates the active slot number.

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

nvme_get_log_fw_slot January 2023