nvme_mi_adm...ia_unit_stat(2)

✨ nvme_mi_admin_get_log_media_unit_stat(2) ✨

okay bestie, welcome to the libnvme API manual πŸ’– you're about to read up on nvme_mi_admin_get_log_media_unit_stat(2) and honestly? it's giving "grab the receipts on your storage media units." let's get into it 🫢


🌸 NAME 🌸

nvme_mi_admin_get_log_media_unit_stat β€” Retrieve Media Unit Status πŸ’…

like... go get the status. of the media units. that's the whole job. slay.


πŸŽ€ SYNOPSIS πŸŽ€

int nvme_mi_admin_get_log_media_unit_stat (nvme_mi_ctrl_t ctrl , __u16
domid , struct nvme_media_unit_stat_log *mus );

yes it wraps like that, she's a long one, we don't judge πŸ’œ (we DO copy her exactly tho, character for character, no cap)


πŸ¦‹ ARGUMENTS πŸ¦‹

  • ctrl β€” the Controller to query πŸ‘‘ this is your main character, the thing you're asking questions about
  • domid β€” Domain Identifier selection, if supported 🌈 (that "if supported" is doing a lot of work here, don't forget it, bestie)
  • mus β€” User address to store the Media Unit statistics log πŸ“ like, hand her an address and she'll drop the stats there

🌟 RETURN 🌟

so here's what comes back, periodt:

  • the nvme command status, if a response was received β€” peep enum nvme_status_field for the full tea β˜•
  • -1 with errno set, otherwise 😭
fr fr, that's either a status code or a -1 + errno. no in-between, no vibes-based guessing ✨

πŸ’Œ one lil sign-off πŸ’Œ

this page came to you from the libnvme API manual, dated July 2026 β€” and it lives at nvme_mi_adm...ia_unit_stat(2), which, ik, the name got a lil truncated in the header, it's fine, she's iconic regardless πŸ‘‘ read it, love it, go query your controller πŸ’–βœ¨

πŸ¦‹ mwah, bye bestie πŸ¦‹

πŸ“¦ where this page comes from