libnvme(9)

πŸ“¦ version 3.2, in arch rolling

πŸ’œ libnvme(9) β€” bestie's guide to the API Manual

okay so picture this: you're deep in the libnvme API Manual, section 9, and you've stumbled into the voltage-sensor corner of the Identify Controller story. this page is all about one little enum, and honestly? she's doing a lot of work behind the scenes. no cap.


✨ NAME ✨

enum nvme_id_ctrl_vsen β€” the Identify Controller Voltage Sensor data structure, covering VSEN1-VSEN4. yes bestie, all four of them. she's got range. πŸ¦‹


🌸 SYNOPSIS 🌸

here's the whole vibe, verbatim, do not touch:

enum nvme_id_ctrl_vsen {
    NVME_CTRL_VSEN_VSRV_SHIFT ,
    NVME_CTRL_VSEN_VSRV_MASK ,
    NVME_CTRL_VSEN_VSRS_SHIFT ,
    NVME_CTRL_VSEN_VSRS_MASK ,
    NVME_CTRL_VSEN_VOLSS_SHIFT ,
    NVME_CTRL_VSEN_VOLSS_MASK ,
    NVME_CTRL_VSEN_PISL_SHIFT ,
    NVME_CTRL_VSEN_PISL_MASK ,
    NVME_CTRL_VSEN_PISV_SHIFT ,
    NVME_CTRL_VSEN_PISV_MASK

};

look at her. ten constants. not one of them is filler. we stan a structured queen πŸ‘‘


πŸ‘‘ CONSTANTS πŸ‘‘

so here's the tea β€” this enum is basically a little kit of shift/mask pairs. shifting gets you the field, masking keeps only the field. that's the whole bit. let's meet every single one, no skipping, periodt.

  • NVME_CTRL_VSEN_VSRV_SHIFT β€” the shift amount you use to pull out the Voltage Sample Rate Value (VSRV). ✨
  • NVME_CTRL_VSEN_VSRV_MASK β€” the mask that gets you VSRV. matching set with the shift above, iykyk.
  • NVME_CTRL_VSEN_VSRS_SHIFT β€” the shift amount to get the Voltage Sample Rate Scale (VSRS). πŸ’…
  • NVME_CTRL_VSEN_VSRS_MASK β€” the mask to get VSRS. iconic, no notes.
  • NVME_CTRL_VSEN_VOLSS_SHIFT β€” the shift amount to get the Voltage Sample Scale (VOLSS). πŸŽ€
  • NVME_CTRL_VSEN_VOLSS_MASK β€” the mask to get VOLSS. yes ma'am.
  • NVME_CTRL_VSEN_PISL_SHIFT β€” the shift amount to get the Power Input Supply Label (PISL). 🫢
  • NVME_CTRL_VSEN_PISL_MASK β€” the mask to get PISL. slay.
  • NVME_CTRL_VSEN_PISV_SHIFT β€” the shift amount to get the Power Input Supply Value (PISV), and lowkey important detail incoming: it's measured in units of 0.05 V. write that down bestie, do not round it, do not get cute with it πŸ”₯
  • NVME_CTRL_VSEN_PISV_MASK β€” the mask to get PISV. last one, but absolutely not least. πŸ’€

real talk: every one of these constants is a _SHIFT or a _MASK, and each pair belongs together. don't go mixing up which mask goes with which shift β€” that's giving "chaos" and not in the fun way πŸ™ˆ

🧚 the sign-off 🧚

that's the whole page, bestie β€” nothing hidden, nothing skimmed. this gem is dated October 2026, it's the enum nvme_id_ctrl_vsen page, and it lives in libnvme section 9. go forth and shift-and-mask responsibly πŸ’–πŸŒˆβ­


page complete, mwah πŸ’œ

πŸ“¦ where this page comes from