libnvme(9)

πŸ“¦ version 3.2, in arch rolling

πŸ’… libnvme(9) β€” API Manual, bestie edition ✨

Okay so we're looking at a page from the libnvme API Manual, and today's main character is a struct. Buckle up πŸŽ€


🌸 NAME 🌸

struct nvme_power_on_reset_info_list β€” literally the Controller Reset Information struct, no cap πŸ’–


✨ SYNOPSIS ✨

Here's the shape of it, exact characters, don't touch a single one 🫢

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;
 };

πŸ¦‹ Members πŸ¦‹

Bestie, let's go through the fields one by one, because every single one of them is doing its little job 🌈

  • cid β€” the Controller ID. That's it, that's the field πŸ‘‘
  • fw_act β€” Firmware Activation. Yes queen, the firmware got activated πŸ’«
  • op_in_prog β€” Operation in Progress. Something's mid-crunch, hold please πŸ™ˆ
  • rsvd4 β€” Reserved. Not for us. Hands off, it's reserved for a reason πŸ’€
  • ctrl_power_cycle β€” Controller Power Cycle. The power-cycle counter of the controller itself ⚑
  • power_on_ml_seconds β€” Power on milliseconds. Milliseconds, bestie, not seconds β€” the field name says _seconds and the description says milliseconds, and I'm just telling you exactly what it says 😭
  • ctrl_time_stamp β€” Controller Timestamp. So it knows when πŸ•°οΈ
Ngl, rsvd4 being __u8 rsvd4[12] while everything else is __le* is just the struct doing its thing β€” copy it exactly, don't get creative πŸ’…

πŸŽ€ Sign-off πŸŽ€

This gem is from the libnvme API Manual (that's the <rainbow>libnvme(9)</rainbow> you saw up top πŸ’œ), dated October 2026, and the page footer says exactly what the header says about the struct: struct nvme_power_on_reset_info_list, libnvme(9). Slay, go reset some controllers responsibly βœ¨πŸ«ΆπŸ“

πŸ“¦ where this page comes from