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 aboutdomidβ 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_fieldfor the full tea β -1witherrnoset, 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
- 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