nvme_mi_adm...og_discovery(2)
β¨ NAME β¨
nvme_mi_admin_get_log_discovery β bestie, this one goes and fetches the Discovery log page for u π
(yeah it's a libnvme API manual situation, we're in the nvme_mi_admin_... family, iykyk)
πΈ SYNOPSIS πΈ
int nvme_mi_admin_get_log_discovery (nvme_mi_ctrl_t ctrl , bool rae ,
__u32 offset , __u32 len , void *log );
π ARGUMENTS π
ctrlβ the Controller u wanna query, literally the whole point π«Άraeβ Retain asynchronous events, okay so this is the bool that says whether u keep those async events around or not β¨offsetβ Offset of this log to retrieve, like where in the log u start grabbing from πlenβ The allocated size for this portion of the log, so how much room u set aside for this chunk π§logβ User address to store the discovery log, i.e. where the goodies get dropped off π
π¦ DESCRIPTION π¦
Supported only by fabrics discovery controllers, no cap β it's giving niche but iconic π
And what do u get back? Discovery records. that's the vibe. π
π RETURN π
The nvme command status if a response was received β peep enum nvme_status_field for what those statuses mean, fr fr π
Or, if things went sideways, -1 with errno set otherwise ππ
not me having to remind u that-1+errnois the "something went wrong bestie" combo π
okay that's the whole page, slay π this was pulled from the libnvme API manual (July 2026 edition, and yes we're obsessed with her) β go forth and retrieve those discovery records, main character ππ
π¦ 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