NVME_MI_ADMIN_GET_LOG_AVE_DISCOVER(2)

✨ NAME ✨

nvme_mi_admin_get_log_ave_discover β€” bestie, this is the one that goes and *Retrieve*s the AVE Discovery Log πŸ’–

It lives in the libnvme API manual, so if you're poking at NVMe-MI stuff and you need that AVE discovery log page… yeah. This is her. πŸ‘‘


🌸 SYNOPSIS 🌸

int nvme_mi_admin_get_log_ave_discover (nvme_mi_ctrl_t ctrl , bool rae ,
       __u32 len , struct nvme_ave_discover_log *log );

no cap, that's the whole signature. four args, one int coming back at you. 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • ctrl β€” the Controller to query. this is the one you're asking, bestie, be nice to her πŸ’…
  • rae β€” Retain asynchronous events. it's a bool, so true/false energy only ✨
  • len β€” The allocated length of the log page. yes, you have to pass how much room you made. it's giving "adulting" 😭
  • log β€” User address to store the log page. hand over the pointer, she'll do the rest πŸ¦‹

πŸ’œ RETURN πŸ’œ

So like… what do you get back? πŸ’«

  • The nvme command status if a response was received β€” check enum nvme_status_field for the tea πŸ”
  • or -1 with errno set otherwise. if you see the -1, that's your sign to go read errno, periodt πŸ’€
fr fr: don't just check "did it fail", check what it told you. the status is the whole plot. πŸ“–

🌈 okay that's the page, bestie! the vibe check is complete and everything's still here: nvme_mi_admin_get_log_ave_discover, nvme_mi_ctrl_t ctrl, bool rae, __u32 len, struct nvme_ave_discover_log *log, the enum nvme_status_field glow-up, and the -1 + errno classic. 🫢

sign-off szn: this lil slice of libnvme API manual dropped July 2026, and the footer's whole identity is basically nvme_mi_admin_get_log_ave_discover(2) β€” cute, iconic, slightly unhinged header-wrapping, we love her. mwah πŸ’‹

πŸ“¦ where this page comes from