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

nvme_mi_admin_get_log_smart - Retrieve nvme smart log

int nvme_mi_admin_get_log_smart (nvme_mi_ctrl_t ctrl , __u32 nsid , bool rae , struct nvme_smart_log *smart_log );

Controller to query
Optional namespace identifier
Retain asynchronous events
User address to store the smart log

This log page provides SMART and general health information. The information provided is over the life of the controller and is retained across power cycles. To request the controller log page, the namespace identifier specified is FFFFFFFFh. The controller may also support requesting the log page on a per namespace basis, as indicated by bit 0 of the LPA field in the Identify Controller data structure.

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

nvme_mi_admin_get_log_smart January 2023