NVME_MI_ADMIN_GET_LOG_SMART(2)
๐ nvme_mi_admin_get_log_smart(2) ๐
okay bestie, welcome to the libnvme API manual โจ this one's a lil function from the libnvme crew and she is so useful, trust.
๐ธ NAME ๐ธ
nvme_mi_admin_get_log_smart โ retrieve nvme smart log ๐ง โจ
๐ SYNOPSIS ๐
int nvme_mi_admin_get_log_smart (nvme_mi_ctrl_t ctrl , __u32 nsid , bool
rae , struct nvme_smart_log *smart_log );
๐ ARGUMENTS ๐
ctrlโ the controller you wanna query, bestie ๐ฎnsidโ optional namespace identifier (yes bb, it's optional, we love options)raeโ retain asynchronous events ๐smart_logโ a user address to store the smart log in ๐ ๐
๐ฆ DESCRIPTION ๐ฆ
so this log page is literally the SMART and general health info, like the vibe check of your controller's whole existence ๐ซ
the tea is: this info lives over the life of the controller and it stays put across power cycles โ she does not forget, no cap ๐โจ
if you wanna request the controller log page, the namespace identifier you specify is FFFFFFFFh ๐
the controller may also support requesting the log page on a per namespace basis, and that's indicated by bit 0 of the LPA field in the Identify Controller data structure ๐ (iykyk)
โญ RETURN โญ
you get back the nvme command status if a response was received (peep enum nvme_status_field for that) ๐
or otherwise? -1 with errno set ๐ญ like okay noted, we move.
fr fr, check that errno before you spiral, bestie ๐
and that's the whole page, periodt ๐ โจ
signing off from the libnvme API manual, July 2026 โ stay iconic, go get that smart log, mwah ๐ซถ๐๐
๐ฆ where this page comes from
- ubuntu stonking: libnvme-dev 1.16.2-1build1 ยท LGPL-2.1-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms