nvme_init_get_log(9)
π« nvme_init_get_log β the libnvme API manual, bestie edition π«
Okay so real talk: this is a page from the libnvme API manual, and today's main character is nvme_init_get_log(9). Yes, that's the manpage section 9 β kernel/API territory, we love to see it. π
β¨ NAME β¨
nvme_init_get_log β literally just initializes a passthru command for the NVMe Admin Get Log. That's it. That's the whole vibe. No cap. π
πΈ SYNOPSIS πΈ
void nvme_init_get_log (struct libnvme_passthru_cmd *cmd , __u32 nsid ,
enum nvme_cmd_get_log_lid lid , enum nvme_csi csi , void *data , __u32
len );
Notice it returns void, so likeβ¦ she's not giving you a return value. She's giving you setup. Set the stage, queen. π
π¦ ARGUMENTS π¦
Every single one of these matters, so let's go through them one by one, together, hand in hand π«Ά
cmdβ the passthru command to use. This is the thing getting initialized, the canvas, the main character of the function. β¨nsidβ namespace identifier, if applicable. Note the "if applicable" β sometimes there just isn't a namespace in the picture, and that's fine, we're not judging. πlidβ the Log Page Identifier. Head over toenum nvme_cmd_get_log_lidfor the full menu of known values. iykyk. π₯csiβ the command set identifier. Same deal: checkenum nvme_csifor the known values, because that's where the real answers live. πdataβ the user space destination address where the data is gonna get transferred. Your buffer, your business. πlenβ length of the user buffer you just handed over, in bytes, and it's the thing holding the log data. Keep it honest, bestie. π
Heads up, no surprises here: every value is passed straight through, and the page doesn't promise you any side effects or error returns beyond what's written. Don't go inventing behaviour that isn't on the page β that's not the vibe check we're doing today. π
So yeah, that's the whole page β small but iconic, an absolute legend in her own right. π And listen, this beauty is dated October 2026, brought to you courtesy of the libnvme API manual and this exact nvme_init_get_log page β go off, team, you ate. ππ
πΈ
π¦ 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