libnvme(9)

πŸ“¦ version 3.2, in arch rolling

πŸ’… 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 β€” the 0.0001 watt scale 🧚 tiny little power scale, but she's doing her best.
  • NVME_PSD_PS_10_MILLI_WATT β€” the 0.01 watt 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