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