nvme_init_g...dressable_ns(9)

πŸ“¦ version 3.2, in arch rolling

πŸ’… 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 a void function, so there's nothing to check on the way out β€” just make sure your cmd, your lpo, your log buffer and your len are 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