NVME_INIT_GET_LOG_DEVICE_SELF_TEST-LIBNVME3(2)
π nvme_init_get_log_device_self_test β libnvme API manual, bestie edition
okay so welcome to the libnvme API manual, and today's main character is nvme_init_get_log_device_self_test(9). yes bestie the title is longer than my attention span but we're gonna get through it together, i promise π«Ά
β¨ NAME β¨
nvme_init_get_log_device_self_test β initializes the passthru command for Device Self-test π
like literally that's her whole job and she does it flawlessly, no notes π
πΈ SYNOPSIS πΈ
void nvme_init_get_log_device_self_test (struct libnvme_passthru_cmd *cmd , struct nvme_self_test_log *log );
look at that signature. gorgeous. not a single thing out of place. she ate and left zero crumbs β¨
π¦ ARGUMENTS π¦
cmdβ the Passthru command to use. this is the one you're handing over so she can do her lil setup thing on it πlogβ the Userspace address of the log payload. yeah. that's where the log data lives, in userspace, and you're passing the address. very demure, very mindful π
π DESCRIPTION π
okay so here's the tea, and the tea is genuinely pretty short because she's an efficient queen:
This function initializes the passthru command buffer for the Get Log command with LID value NVME_LOG_LID_DEVICE_SELF_TEST π
that's it. that's the whole vibe. it sets up the buffer, it plugs in that NVME_LOG_LID_DEVICE_SELF_TEST LID, and it's done. no drama, no surprises, just clean initialization energy π₯
ngl bestie this one is a "trust the process" function β call her, she preps the command buffer, you go run your passthru command, everybody wins π
π cute lil sign-off π
this page came to you courtesy of libnvme, dated October 2026 β and yeah the footer in the original got a little smushed up with the title (nvme_init_get_log_device_snvme_init_ge...ce_self_test(9)), which is honestly so real of it, we've all been there ππ
anyway ily, go initialize some passthru commands responsibly, and remember: NVME_LOG_LID_DEVICE_SELF_TEST is the LID and that's periodt π¦π
β
π¦ where this page comes from
- arch rolling: nvme-cli 3.2-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms