NVME_GET_LOG_REACHABILITY_GROUPS(2)

πŸ’– NAME πŸ’–

nvme_get_log_reachability_groups β€” bestie, this one grabs the Reachability Groups Log for you 🫢

So like. It's a libnvme API situation, and it's here to fetch that log page. That's the whole vibe. ✨


🌸 SYNOPSIS 🌸

int nvme_get_log_reachability_groups (int fd , bool rgo , bool rae ,
       __u32 len , struct nvme_reachability_groups_log *log );

πŸŽ€ ARGUMENTS πŸŽ€

  • fd β€” the file descriptor of your nvme device, aka the little handle that says "yes, this drive, right here" πŸ’…
  • rgo β€” "Return groups only". When you want just the groups and nothing else, this is your girl ✨
  • rae β€” "Retain asynchronous events". Keeps those async events held onto, no cap πŸ¦‹
  • len β€” the allocated length of the log page. You gotta tell it how much room you set aside, bestie πŸ“
  • log β€” user address to store the log page. This is where the good stuff lands πŸ‘‘

⭐ RETURN ⭐

Okay so here's what comes back at you:

  • the nvme command status if a response was received (peep enum nvme_status_field for the deets) πŸ”
  • or -1 with errno set, if it didn't go that way 😭
like, if you see -1, check your errno immediately. she's trying to tell you something fr fr πŸ’€

and that's the whole page, you ate that πŸ’–

July 2026 energy, brought to you by the libnvme API manual girlies β€” nvme_get_log_reachability_groups, section 2, periodt. πŸ‘‘πŸŒˆ

πŸ“¦ where this page comes from