libnvme(2)
π libnvme(2) β your bestie's guide to struct nvme_mi_ctrl_health_status π
okay so we're doing a manual page from libnvme, section 2 (that's the API manual bestie, we're in the library zone not the command zone β¨), and today's main character is the Controller Health Data Structure, aka CHDS. yes it's an acronym. yes you should use it. it's giving "i check my own vitals and i'm thriving" π©Ίπ
πΈ NAME πΈ
struct nvme_mi_ctrl_health_status β the Controller Health Data Structure (CHDS) π«Ά
literally it's the little struct that holds all the "how are we doing today, controller?" tea ββ¨
π¦ SYNOPSIS π¦
here's the whole thing, no cap, copy it exactly bestie:
struct nvme_mi_ctrl_health_status {
__le16 ctlid;
__le16 csts;
__le16 ctemp;
__u8 pdlu;
__u8 spare;
__u8 cwarn;
__u8 rsvd9[7];
};
yes those are __le16 and __u8 types β little-endian 16-bit and plain old 8-bit. the kernel devs said "we're being explicit about byte order" and honestly? slay, respect π
π Members π
okay so these are the fields, one by one, no skipping, i promised π
ctlidβ Controller Identifier. it's the controller's lil name tag so you know which controller we're talking about πcstsβ Controller Status. the vibe check, in field form β¨ctempβ Composite Temperature. how hot is it running? is it overheating or is it fine? this field knows π‘οΈπ₯pdluβ Percentage Used. the percentage-used stat, out here reminding you that everything ages πspareβ Available Spare. the spare capacity still kicking around, your safety net bestie π«Άcwarnβ Critical Warning. the β οΈ field. when this one's talking, you should probably be listening ππrsvd9β Reserved. do not touch. it's not for you. it's reserved, periodt π (seriously, leave it alone, it's reserved)
π the cute sign-off π
this page is from libnvme, section 2, and it's dated July 2026 β so yes, the future called and it still wants you to read your manual pages π π
also quick reminder bestie:rsvd9isReserved. reserved means not yours. i'm not saying you'd poke it. i'm saying i know you were thinking about it. π
bye mwah, go read more manpages, they're lowkey iconic π§ββοΈπβ¨
π¦ 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