nvme_init_g...dressable_ns(9)
π nvme_init_g...dressable_ns(9) β¨
okay so bestie, this one lives in the libnvme API manual and it's genuinely such a helpful little function, like it's giving "set up my passthru command for me so I don't have to" energy and honestly? obsessed. π«Ά
It's the page for nvme_init_get_log_host_addressable_ns, and yes the title is abbreviated up there because some names are just Long and we respect that. π
β¨ NAME β¨
nvme_init_get_log_host_addressable_ns β initializes the passthru command for Host Addressable Namespaces. that's the whole vibe. π
πΈ SYNOPSIS πΈ
void nvme_init_get_log_host_addressable_ns (struct libnvme_passthru_cmd
*cmd , __u64 lpo , void *log , __u32 len );
like literally that's it, no return value, it just does the thing. π
π¦ ARGUMENTS π¦
cmdβ the passthru command you're gonna use. this is the main character here, it's the one getting set up. πlpoβ offset into the log page. yes, lpo, we didn't name it, don't come for us. πlogβ the log page data buffer, where the good stuff ends up. πlenβ length (in bytes) of the user buffer you're providing to hold the log data. so like, size matters, be accurate fr fr. π
π DESCRIPTION π
So what it does: it initializes the passthru command buffer for the Get Log command, with the LID value set to NVME_LOG_LID_HOST_ADDRESSABLE_NS.
That's the whole thing, bestie. it's a setup function, it hands you back a cmd that's pre-loaded with the right LID so you can go do your Get Log call. no cap, that's the tea. β¨
ngl it's avoidfunction, so there's nothing to check on the way out β just make sure yourcmd, yourlpo, yourlogbuffer and yourlenare all correct before you call it, because this one is trusting you completely. π
π§ a lil sign-off π§
that's the page!! brought to you by the libnvme API manual, dated October 2026, and honestly? iconic. slay. periodt. π π₯β
go init those passthru commands bestie, you got this π
π¦ 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