nvme_mi_adm...associations(2)
π nvme_mi_admin_get_log_reachability_associations π
okay bestie, so this one is from the libnvme API manual, section 2, and it's literally the plot twist of NVMe-MI: you're grabbing the Reachability Associations Log off a controller. think of it as the controller's "who can even talk to whom rn" gossip page π«Ά
β¨ NAME β¨
nvme_mi_admin_get_log_reachability_associations β Retrieve Reachability Associations Log
no cap, that's the whole vibe: pull the log that tells you which things can reach which things.
π SYNOPSIS π
int nvme_mi_admin_get_log_reachability_associations (nvme_mi_ctrl_t ctrl
, bool rao , bool rae , __u32 len , struct
nvme_reachability_associations_log *log );
like... yes, it returns an int. we love a return value. π§
πΈ ARGUMENTS πΈ
ctrlβ the Controller to query π this is your main character, the one you're interrogating.raoβ Return associations only π set it and you get just the associations, nothing extra, minimalism era.raeβ Retain asynchronous events π¦ because sometimes you want the async events to stay put instead of getting cleared.lenβ the allocated length of the log page π like, how much space you actually set aside. no guessing.logβ user address to store the log page π this is where the goods land. you provide the memory, it fills it in.
β RETURN β
bestie, here's the tea on what comes back:
The nvme command status if a response was received β peep enum nvme_status_field for the full deets π₯ β or, and this is the part where we scream, -1 with errno set otherwise π
not me reading "or-1witherrnoset otherwise" and knowing exactly what kind of day that is. checkerrnofr fr, it's not gonna tell you on its own. π
π and that's the whole page π
lowkey iconic that it's this short. slay, honestly. periodt. π
signing off from the libnvme API manual, page nvme_mi_adm...associations(2), dated July 2026 β that's the version and the date, bestie, we keep our receipts πβ¨
π¦ 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