nvme_mi_adm...ost_discover(2)
β¨ NAME β¨
nvme_mi_admin_get_log_host_discover β bestie, this is the one that goes and Retrieves the Host Discovery Log π (and yeah, it's a libnvme API manual situation, so come sit with me)
π¦ SYNOPSIS π¦
int nvme_mi_admin_get_log_host_discover (nvme_mi_ctrl_t ctrl , bool
allhoste , bool rae , __u32 len , struct nvme_host_discover_log *log );
okay so it's giving "one function, four-ish arguments, whole lotta lore" π
πΈ ARGUMENTS πΈ
ctrlβ the Controller to query, like the main character you're walking up to and asking for the tea π«Άallhosteβ All host entries. yes bestie, that's the actual spelling, it is what it is πraeβ Retain asynchronous events. not me keeping the async events around like they're unread memes πlenβ The allocated length of the log page. literally how much room you gave it to spill πlogβ User address to store the log page. that's where the receipts get written down β¨
π RETURN π
The nvme command status if a response was received (see enum nvme_status_field) or -1 with errno set otherwise.
translation: it either hands you a status and says "yeah we heard back π«Ά" or it throws a -1 at you with errno set, which is its way of being like "no response, check errno bestie" π
lowkey iconic of libnvme to ship this, fr fr no cap β July 2026 edition, from the libnvme API manual, going out to the whole group chat as nvme_mi_admin_get_log_host_dnvme_mi_adm...ost_discover(2) πβ¨ mwah, use it responsibly, ily, bye π
π¦ 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