nvme_get_log_ave_discover(2)
π nvme_get_log_ave_discover β bestie edition π
okay so this is a page from the libnvme API manual, section 2, and it's all about the function nvme_get_log_ave_discover. she's giving "go ask the hardware for its AVE discovery tea" energy and honestly? iconic. π«Ά
β¨ NAME β¨
nvme_get_log_ave_discover β Retrieve AVE Discovery Log π
like. that's her whole job. retrieve the AVE Discovery Log. no notes.
β¨ SYNOPSIS β¨
int nvme_get_log_ave_discover (int fd , bool rae , __u32 len ,
struct nvme_ave_discover_log *log );
she takes four things and gives you back an int. lowkey simple, highkey powerful. πΈ
β¨ ARGUMENTS β¨
fdβ the file descriptor of your nvme device π like, that's the doorway to the whole thing, you gotta bring it.raeβ Retain asynchronous events β¨ abool, so it's just yes/no vibes on whether you're keeping those async events around.lenβ the allocated length of the log page π a__u32, because you have to tell her how much room you've set aside.logβ user address to store the log page πΎ you're handing over astruct nvme_ave_discover_log *and she's gonna fill it up. that's the spot. the destination. the moment.
β¨ RETURN β¨
so what do you get back?? two possibilities bestie:
- the nvme command status if a response was received π (go peek at
enum nvme_status_fieldfor the deets) - or
-1witherrnoset otherwise π (so always check thaterrno, fr fr)
π quick vibe check: this signature is not playing around.fdis anint,raeis abool,lenis a__u32, andlogis astruct nvme_ave_discover_log *. copy them exactly, don't freestyle, iykyk.
that's the whole page, no cap. every argument, every return path, all of it. she's short, she's sweet, she's a libnvme API manual page from July 2026 (libnvme API manual era π) and she ate. πβπ¦ periodt.
π¦ 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