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 abool, 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_fieldfor the tea π - or
-1witherrnoset otherwise. if you see the-1, that's your sign to go readerrno, 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
- ubuntu stonking: libnvme-dev 1.16.2-1build1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms