libnvme(9)

πŸ“¦ version 3.2, in arch rolling

πŸ’œ libnvme(9) β€” the Voltage Measurement one (yes bestie, we're reading API docs for fun now)

Okay so this is from the libnvme manual, section 9, and it's literally all about one little enum. Her name? enum nvme_voltage_measurement_vma. She's the Voltage Measurement log page β€” Voltage Measurement Attributes (VMA). Iconic. A whole enum just for the VMA bits. Let's get into it πŸŽ€


✨ NAME ✨

enum nvme_voltage_measurement_vma β€” the Voltage Measurement log page, specifically the Voltage Measurement Attributes, aka VMA. That's the whole vibe. No cap. πŸ¦‹


🌸 SYNOPSIS 🌸

enum nvme_voltage_measurement_vma {
    NVME_VOLTAGE_MEASUREMENT_VMA_VME ,
    NVME_VOLTAGE_MEASUREMENT_VMA_IVOLTS ,
    NVME_VOLTAGE_MEASUREMENT_VMA_VSM_SHIFT ,
    NVME_VOLTAGE_MEASUREMENT_VMA_VSM_MASK ,
    NVME_VOLTAGE_MEASUREMENT_VMA_VMC

};

Like, that's the entire flex. Five constants, one enum, zero drama (the good kind of zero drama). πŸ”₯


⭐ Constants ⭐

Here's the group chat roster, one by one, no skipping, fr fr:

  • NVME_VOLTAGE_MEASUREMENT_VMA_VME β€” the Voltage Measurement Enable bit. She's the main character of "are we even measuring voltage rn or not." πŸ‘‘
  • NVME_VOLTAGE_MEASUREMENT_VMA_IVOLTS β€” Interval Voltage Timestamp Support. Basically letting you know the voltage timestamp thing is supported. A supporting-role queen. πŸ’…
  • NVME_VOLTAGE_MEASUREMENT_VMA_VSM_SHIFT β€” the shift amount you use to get the Voltage Sensor Measured (VSM). And bestie, the docs literally point you at enum nvme_voltage_sensor for that one, so go look there too. It's giving "collab." 🀝
  • NVME_VOLTAGE_MEASUREMENT_VMA_VSM_MASK β€” the mask you use to get VSM. Same VSM, different tool. Shift and mask, the duo that ate. 🫢
  • NVME_VOLTAGE_MEASUREMENT_VMA_VMC β€” Voltage Measurement Counted. That's it. That's the constant. Short, sweet, counted. πŸ“
Heads up, bestie: these are just constants and their meanings β€” the page gives you the definitions and the shift/mask hints, and nothing more. Don't go inventing behaviour, that's not the vibe. πŸ™ˆ

Anyway, that's the whole page β€” short, sweet, and lowkey essential if you're poking at voltage measurement stuff in NVMe. Go slay those bitfields. 🌈✨

Signed off with love from the enum nvme_voltage_measurement_vma source in the libnvme(9) manual, dated October 2026 β€” mwah πŸ’‹πŸ¦‹

πŸ“¦ where this page comes from