libnvme(9)
π libnvme(9) β the one and only
okay so bestie, welcome to the libnvme(9) page π this is API Manual energy, and today's main character is a lil enum that lives inside the Start Voltage Measurements Data Structure β specifically the Log Voltage Threshold, aka LVOLT. yes it's a lot of capital letters, no i will not be apologizing for it π«Ά
β¨ NAME β¨
enum nvme_voltage_measurement_lvolt β Start Voltage Measurements Data Structure - Log Voltage Threshold (LVOLT)
like, that's the whole name. it's giving "my parents gave me four middle names" π but it's literally the voltage threshold enum and she ate π
πΈ SYNOPSIS πΈ
enum nvme_voltage_measurement_lvolt {
NVME_VOLTAGE_MEASUREMENT_LVOLT_LUVT_SHIFT ,
NVME_VOLTAGE_MEASUREMENT_LVOLT_LUVT_MASK ,
NVME_VOLTAGE_MEASUREMENT_LVOLT_LOVT_SHIFT ,
NVME_VOLTAGE_MEASUREMENT_LVOLT_LOVT_MASK
};
that's the whole lineup, no cap β four constants, all iconic, all shifting and masking like it's their job (it is) β
π Constants π
bestie these are the four constants and you're gonna memorize them because they're lowkey the whole point of this page:
NVME_VOLTAGE_MEASUREMENT_LVOLT_LUVT_SHIFTβ the shift amount you use to get the Log Undervoltage Threshold (LUVT) π shift it, slay it.NVME_VOLTAGE_MEASUREMENT_LVOLT_LUVT_MASKβ the mask you use to get LUVT π mask on, threshold revealed.NVME_VOLTAGE_MEASUREMENT_LVOLT_LOVT_SHIFTβ the shift amount you use to get the Log Overvoltage Threshold (LOVT) π₯ different threshold, same gorgeous bit-twiddling energy.NVME_VOLTAGE_MEASUREMENT_LVOLT_LOVT_MASKβ the mask you use to get LOVT π last one, and yes she's also just a mask. periodt.
ngl the pattern here is so clean β shift to slide the bits into place, mask to grab exactly the field you want. under-volt and over-volt, both handled, both gorgeous π
π¦ a lil sign-off π¦
and that's the whole page, bestie π you just read the libnvme(9) manpage from the API Manual, dated October 2026 β go forth and measure those voltages responsibly, 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