libnvme(2)
β¨ libnvme, bestie β section 2, the API Manual β¨
Okay so real talk, we're looking at the manual page for enum nvme_psd_ps and it's a tiny one but it's important, so stay with me. π
πΈ NAME πΈ
enum nvme_psd_ps β the known values for &struct nvme_psd %ips and %aps. Use it with nvme_psd_power_scale() to extract the power scale field so it matches this enum. π¦
literally the whole point: you pull the power scale out with nvme_psd_power_scale() and then you compare it against one of the constants below. that's it. that's the vibe check. π
β¨ SYNOPSIS β¨
enum nvme_psd_ps {
NVME_PSD_PS_NOT_REPORTED ,
NVME_PSD_PS_100_MICRO_WATT ,
NVME_PSD_PS_10_MILLI_WATT
};
likeβ¦ three constants. three. and they are all iconic in their own way. π
π Constants π
NVME_PSD_PS_NOT_REPORTEDβ not reported. that's it. nobody told us anything, so we put nothing. it's giving mystery. πNVME_PSD_PS_100_MICRO_WATTβ the0.0001watt scale. tiny little guy. microscopic energy, but she's precise. π₯NVME_PSD_PS_10_MILLI_WATTβ the0.01watt scale. bigger than the micro watt one, still lowkey small. π
ngl, if you mix these up your power numbers are gonna be off by orders of magnitude and that is NOT the main character energy you want. match the enum to whatever nvme_psd_power_scale() hands you. no cap. π
okay pookie, that's the whole page β slay, you read it, I'm so proud of you. π«Ά this was enum nvme_psd_ps from the libnvme API Manual, July 2026 edition, and yes it really is libnvme(2) at the top, in the middle, and at the bottom, she's consistent like that. β¨ππ
π¦ where this page comes from
- ubuntu stonking: libnvme-dev 1.16.2-1build1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms