logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

nvme_get_log_smart - Retrieve nvme smart log

Arguments

fd File descriptor of nvme device nsid Optional namespace identifier rae Retain asynchronous events smart_log User address to store the smart log

Description

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.

Name

nvme_get_log_smart - Retrieve nvme smart log

Return

The nvme command status if a response was received (see enumnvme_status_field) or -1 with errno set otherwise. May 2025 nvme_get_log_smart nvme_get_log_smart(2)

Synopsis

intnvme_get_log_smart(intfd,__u32nsid,boolrae,structnvme_smart_log*smart_log);

See Also