nvme_mi_mi_..._status_poll(2)
π NAME π
nvme_mi_mi_subsystem_health_status_poll β bestie, this is the one that reads the Subsystem Health Data Structure straight out of the NVM subsystem. Like a lil wellness check for your drive, no cap π©Ίβ¨
This page lives in the libnvme API manual, and it's section 2 of that manual β so when you see nvme_mi_mi_..._status_poll(2) floating around, that's just us π
β¨ SYNOPSIS β¨
int nvme_mi_mi_subsystem_health_status_poll (nvme_mi_ep_t ep , bool
clear , struct nvme_mi_nvm_ss_health_status *nshds );
π«Ά ARGUMENTS π«Ά
epβ the endpoint for MI communication. this is your lil phone line to the drive πclearβ a flag that says "pls clear the Composite Controller Status state". yes queen, wipe it πΈnshdsβ the subsystem health status data you want populated. she gets filled in π
π¦ DESCRIPTION π¦
So basically it retrieves the Subsystem Health Data Structure into nshds. That's the whole main character moment right there.
If clear is set, it requests that the Composite Controller Status bits get cleared after the read β like, read it first, then tidy up, periodt. β¨
For the nitty-gritty on the CCS bits, go peek at NVMe-MI section 5.6. It's giving "required reading" π
Also see struct nvme_mi_nvm_ss_health_status β that's the whole vibe of what nshds points at π©΅
π RETURN π
It hands you back the nvme command status if a response was received (check enum nvme_status_field for the deets) or -1 with errno set otherwise. So if you get a -1, that's not a slay, that's a errno situation ππ
no cap: this function is literally just "tell me how the subsystem's doing, and optionally clean the status bits after." iconic behavior only π
and that's the whole page, bestie!! π§ this lil masterpiece is part of the libnvme API manual, dated July 2026 π ty for reading, go read your drive's health, mwah ππ
π¦ 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