nvme_init_g...ility_groups(9)
β¨ NAME β¨
nvme_init_get_log_reachability_groups β bestie, this is the one that initializes the passthru command for Retrieve Reachability Groups π
(Also, hi, you're reading the libnvme API manual, section 9 β welcome to the cool part of the library π«Ά)
πΈ SYNOPSIS πΈ
void nvme_init_get_log_reachability_groups (struct libnvme_passthru_cmd
*cmd , bool rgo , struct nvme_reachability_groups_log *log , __u32 len
);
okay so it's a void function β it sets things up and hands them back to you, no return value to stress about, periodt β¨
π ARGUMENTS π
cmdβ the passthru command you're gonna use π₯ like, the buffer you're handing over to get filled in.rgoβ Return groups only π abool, so it's a yes/no vibe check.logβ the user address where the log page gets stored π that's yourstruct nvme_reachability_groups_log *, ngl she's the main character here.lenβ the allocated length of the log page πΈ a__u32, so mind your sizing, iykyk.
π¦ DESCRIPTION π¦
So what does it actually do? It initializes the passthru command buffer for the Get Log command, with the LID value set to NVME_LOG_LID_REACHABILITY_GROUPS. That's the whole flex πβ¨
Like β you bring the buffer, it wires up the Get Log bits, and the LID is literal NVME_LOG_LID_REACHABILITY_GROUPS, no cap. Then you go send it. Slay.
fr fr, double-check that len matches what you actually allocated before you send anything β the manpage says it's the allocated length of the log page, so treat it with respect π
that's the whole page, bestie β go get those reachability groups π
sign-off szn π: this was the libnvme API manual, dated October 2026, source line nvme_init_get_log_reachabilit (truncated in the footer, so don't come for me π) β mwah, see you in the next manpage πβ
π¦ 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