libnvme(9)
π
libnvme(9) β bestie's guide to enum nvme_psd_ps β¨
Okay so real talk, this page lives in the API Manual for libnvme(9), and it's short but it's important, so pay attention π
π¦ NAME
enum nvme_psd_ps β the known values for &struct nvme_psd's %ips and %aps fields π Use these with nvme_psd_power_scale() to pull out the power scale field so it matches up with this enum. That's the whole vibe check, fr fr.
β¨ SYNOPSIS
enum nvme_psd_ps {
NVME_PSD_PS_NOT_REPORTED ,
NVME_PSD_PS_100_MICRO_WATT ,
NVME_PSD_PS_10_MILLI_WATT
};
Look at that little enum. Three constants. Iconic. No notes π
πΈ Constants
NVME_PSD_PS_NOT_REPORTEDβ literally just not reported π«₯ nothing was given, nothing was reported, we move on.NVME_PSD_PS_100_MICRO_WATTβ the0.0001watt scale π§ tiny little power scale, but she's doing her best.NVME_PSD_PS_10_MILLI_WATTβ the0.01watt scale π₯ okay she's got a bit more going on.
π reminder bestie: don't guess at these values, always let nvme_psd_power_scale() do the extracting, iykyk π
Alright that's the whole page, no cap π«Ά Sending you off with the cute sign-off: this lil' beauty comes from the API Manual, dated October 2026 β and it's still enum nvme_psd_ps in libnvme(9). Slay ππ
π¦ 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