libnvme(2)
π libnvme(2) β API Manual π
okay bestie, come sit with me because we're doing the libnvme manual, section 2 β that's the API Manual, the devs-only zone, and today's main character is one very specific lil struct. no cap, it's giving "I hold the receipts on your controller resets" energy. let's go π¦
β¨ NAME β¨
struct nvme_power_on_reset_info_list β literally the Controller Reset Information struct. that's it, that's the whole job. she tracks what went down when your controller powered on / reset. π
πΈ SYNOPSIS πΈ
struct nvme_power_on_reset_info_list {
__le16 cid;
__u8 fw_act;
__u8 op_in_prog;
__u8 rsvd4[12];
__le32 ctrl_power_cycle;
__le64 power_on_ml_seconds;
__le64 ctrl_time_stamp;
};
copy that verbatim, don't you dare "clean it up" bestie, every underscore and every __le prefix is load-bearing π
π Members π
cidβ the Controller ID. which controller are we even talking about, bestie? this is how you find out. π«Άfw_actβ Firmware Activation. the firmware activation situation. real "did the glow-up actually install" energy β¨op_in_progβ Operation in Progress. something's still mid-process, she's not done yet, do not interrupt πrsvd4β Reserved. it's reserved, so hands off, that's not your lane, we don't touch it periodt πctrl_power_cycleβ Controller Power Cycle. the power cycle count for the controller, she's keeping track π₯power_on_ml_secondsβ Power on milliseconds. power-on time, measured in milliseconds β yes, milli, tiny little units, we love precision πctrl_time_stampβ Controller Timestamp. the controller's timestamp, so you know exactly when this whole vibe happened β
lowkey important: these fields are laid out exactly as written in the synopsis, with their exact types β__le16,__u8,__u8,__u8[12],__le32,__le64,__le64β in that order. the byte-for-byte layout is the whole point, so no remixing. π§
and that's the whole page, bestie, you ate it π this struct came straight out of libnvme (the one and only), stamped July 2026, and it's all about that struct nvme_power_on_reset_info_list. mwah, go forth and read your reset info ππ
π¦ 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