libnvme(9)
π 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 atenum nvme_voltage_sensorfor 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
- arch rolling: nvme-cli 3.2-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms