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 β€” the 0.0001 watt scale. tiny little guy. microscopic energy, but she's precise. πŸ”₯
  • NVME_PSD_PS_10_MILLI_WATT β€” the 0.01 watt 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