nvme_get_lo...ce_self_test(2)
π nvme_get_log_device_self_test(2) π
okay bestie, welcome to the libnvme API manual β¨ this one's literally about β¨ retrieval β¨ of the device self test log, and yes it's as iconic as it sounds π
πΈ NAME πΈ
nvme_get_log_device_self_test β grab the device self test log π©Ίπ
β¨ SYNOPSIS β¨
int nvme_get_log_device_self_test (int fd , struct nvme_self_test_log
*log );
no cap, that's the whole vibe. two args, one int, one struct pointer. periodt π
π¦ ARGUMENTS π¦
fdβ the file descriptor of the nvme device π«Ά like, this is your entry pass to the whole situation.logβ the userspace address of the log payload π¬ that's where the goods get delivered.
π DESCRIPTION π
so this log page is doing a LOT of main character work, ok? π€ it shows you:
- the status of an in progress self test π plus the percent complete of that operation β so you know exactly how far along it is, not just vibes
- the results of the previous 20 self-test operations π twenty. not nineteen, not twenty-one. the archive is twenty deep, iykyk.
it's giving "receipts for every self test you've ever run" π§Ύβ¨
π₯ RETURN π₯
if a response came back, you get the nvme command status (check enum nvme_status_field for the deets π).
otherwise? it's -1 with errno set. π which is like... not the slay we were hoping for, but at least it tells you what went wrong.
fr fr, always check the return value. -1 is not a personality trait, it's an error π©
and that's the whole page, bestie π«Ά go forth and read those self test results like the unix icon you are ππ¦
with love from the libnvme API manual, dated July 2026 β catch you in the next manpage, 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